使用maven+dubbo+zookeeper 在写一个模块启动时,服务器不能正常启动一直卡在Initializing Spring root WebApplicationContext

Initializing Spring root WebApplicationContext_spring

后来检查xml文件发现自己的消费者的路径配置有问题

Initializing Spring root WebApplicationContext_dubbo_02

修改后就没有问题了

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd">


<dubbo:application name="fpy-sso"></dubbo:application>

<dubbo:registry protocol="zookeeper" address="192.168.10.101:2181"></dubbo:registry>

<dubbo:annotation package="com.fpy.sso.service.impl"></dubbo:annotation>
</beans>

就是将*改为直接的项目名