首页 > 使用lombok 找不到方法

使用lombok 找不到方法

我使用的IDE是IDEA14.1.6,想要在controller获取get方法。
编译时没有错,但是执行之后出错

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Tue Mar 01 21:15:14 CST 2016
There was an unexpected error (type=Internal Server Error, status=500).
com.luoyelingluo.entity.Test.getName()Ljava/lang/String;

我开始也是这个问题,在eclipse里面就不会有这个问题 , 后来转到intellij idea 15 里面就编译成功,但是就是没有get方法 , 然后去下载了一个插件集成 Lombok plugin 0.9.8.15 直接在plugins 里面下载重启 ,你看这个方法行不行


 参考

注意这里

【热门文章】
【热门文章】