spring Error creating bean with name 'xxxx'

解决办法:

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

 

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

 

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

 

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

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

 

posted on 2017-11-08 22:57  走叉月月鸟飞  阅读(30510)  评论(0编辑  收藏  举报

导航