添加@Controller注解会出现Controller cannot be resolved to a type的错误,
试了很多方法都不管用,介绍一个解决的方案:
Run–>run configurations –>Maven Build –>Main下的Workspace选择你报错的项目->Goals填上clean install -U ->Run;
eclipse的版本是4.12.0
添加@Controller注解会出现Controller cannot be resolved to a type的错误,
试了很多方法都不管用,介绍一个解决的方案:
Run–>run configurations –>Maven Build –>Main下的Workspace选择你报错的项目->Goals填上clean install -U ->Run;
eclipse的版本是4.12.0