Initializing Spring root WebApplicationContext

風泊月發表於2018-06-13

使用maven+dubbo+zookeeper 在寫一個模組啟動時,伺服器不能正常啟動一直卡在Initializing Spring root WebApplicationContext

後來檢查xml檔案發現自己的消費者的路徑配置有問題


修改後就沒有問題了

<?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>
就是將*改為直接的專案名

相關文章