问题描述
springboot启动报错Error creating bean with name xxx,导致启动或者debug失败。
解决方案
1.在接口定义没有添加service注解或者在Controller没有添加@RestController注解
添加service注解或@RestController即可
2.没有install项目
通过maven工具install或命令:
mvn clean install -Dmaven.test.skip=true
这个命令非常实用,能解决很多编译问题。
所有评论(0)