spring Error creating bean with name 'xxx'

解决办法:

1.检查Service 扫描applicationContext包的配置web.xml 是否写错了



2.检查spring配置相关的配置,是否配置错误;尤其注意看一下spring自动扫描的包路径

 

3.检查spring mvc相关配置,是否配置错误

 

4.检查@Autowired,@Service,@Controller导包是否正确

5.检查QQ,会占用端口,电脑管家WiFi会生成intc6与zookeeper的ip冲突导致服务发布不到指定虚拟机ip,断掉wifi



仅供个人学习,转载https://www.cnblogs.com/XFJ-XXX/p/7806763.html

猜你喜欢

转载自blog.csdn.net/tony_wang000/article/details/80590708