99网
您的当前位置:首页springboot启动报错Error creating bean with name xxx

springboot启动报错Error creating bean with name xxx

来源:99网

问题描述

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
这个命令非常实用,能解决很多编译问题。

因篇幅问题不能全部显示,请点此查看更多更全内容