天天看点

Dubbo服务启动报错:Duplicate application configs

从启动输出日志观察,原因为加载了两次dubbo配置文件,重新调整加载文件引用路径即可。

2017-06-13 07:35:54,934  INFO [XmlBeanDefinitionReader.java:315] : Loading XML bean definitions from URL [jar:file:/usr/edu/service/user/edu-service-user.jar!/META-INF/spring/dubbo-provider.xml]
2017-06-13 07:35:55,482  INFO [XmlBeanDefinitionReader.java:315] : Loading XML bean definitions from URL [jar:file:/usr/edu/service/user/edu-service-user.jar!/META-INF/spring/spring-context.xml]
2017-06-13 07:35:55,742  INFO [XmlBeanDefinitionReader.java:315] : Loading XML bean definitions from URL [jar:file:/usr/edu/service/user/edu-service-user.jar!/META-INF/spring/spring-mybatis.xml]
2017-06-13 07:35:55,925  INFO [XmlBeanDefinitionReader.java:315] : Loading XML bean definitions from URL [jar:file:/usr/edu/service/user/edu-service-user.jar!/META-INF/spring/dubbo-provider.xml]
2017-06-13 07:35:56,172  INFO [XmlBeanDefinitionReader.java:315] : Loading XML bean definitions from URL [jar:file:/usr/edu/service/user/edu-service-user.jar!/META-INF/spring/spring-mybatis.xml]
           

继续阅读