idea使用maven创建springmvc项目时,执行maven命令,注解找不到,求帮忙
执行命令时报的错误[ERROR]Failedtoexecutegoalorg.apache.maven.plugins:maven-compiler-plugin:3.1...
执行命令时报的错误
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project mytest: Compilation failure: Compilation failure:
[ERROR] /E:/mytest1/src/main/java/com/controller/IndexController.java:[6,2] 找不到符号
[ERROR] 符号: 类 Controller
[ERROR] /E:/mytest1/src/main/java/com/controller/IndexController.java:[7,2] 找不到符号
[ERROR] 符号: 类 RequestMapping
[ERROR] /E:/mytest1/src/main/java/com/controller/IndexController.java:[9,6] 找不到符号
[ERROR] 符号: 类 RequestMapping
[ERROR] 位置: 类 com.controller.IndexController
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 展开
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project mytest: Compilation failure: Compilation failure:
[ERROR] /E:/mytest1/src/main/java/com/controller/IndexController.java:[6,2] 找不到符号
[ERROR] 符号: 类 Controller
[ERROR] /E:/mytest1/src/main/java/com/controller/IndexController.java:[7,2] 找不到符号
[ERROR] 符号: 类 RequestMapping
[ERROR] /E:/mytest1/src/main/java/com/controller/IndexController.java:[9,6] 找不到符号
[ERROR] 符号: 类 RequestMapping
[ERROR] 位置: 类 com.controller.IndexController
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询