出现问题:
Error:(14, 13) java: cannot find symbol
symbol: method setAge(long)
location: variable user of type org.jinghui.springboot.demo.pojo.User
编写的代码如下:
解决思路:
在 Intellij 中 Settings > Build, Execution, Deployment > Compiler > Annotation Processor 选项打钩
参考文档:
Building with Lombok’s @Slf4j and Intellij: Cannot find symbol log - Stack Overflow