美文网首页
module 中使用 lombok

module 中使用 lombok

作者: 赛亚人之神 | 来源:发表于2018-05-17 15:27 被阅读12次

    注意事项:

    在 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

    相关文章

      网友评论

          本文标题:module 中使用 lombok

          本文链接:https://www.haomeiwen.com/subject/rabbdftx.html