注意事项:
在 springboot 中使用 lombok 引用了该 jar 包之后还是无法使用 @Slf4j
解决方法(具体原因待查:猜测少了具体日志的实现?):
在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
网友评论