我使用的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;
Reference
Pay attention here
I also had this problem at first. This problem would not exist in eclipse. Later, I switched to intellij idea 15 and the compilation was successful, but there was no get method. Then I downloaded a plug-in integration Lombok plug-in 0.9.8.15 directly. Download and restart in plugins, see if this method works