注意事項:
在 springboot 中使用 lombok 引用了該 jar 包之后還是無法使用 @Slf4j
解決方法(具體原因待查:猜測少了具體日志的實現(xiàn)?):
在pom.xml 中引入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<scope>provided</scope>
</dependency>
具體見如下工程中的 core 子工程
https://github.com/GrandKai/magic-platform