1. 程式人生 > >java.lang.IllegalStateException: Duplicate application configs: dubbo:application name="xxx"

java.lang.IllegalStateException: Duplicate application configs: dubbo:application name="xxx"

報錯 :

Caused by: java.lang.IllegalStateException: Duplicate application configs: <dubbo:application name="provider" id="provider" /> and <dubbo:application name="consumer" id="consumer" />

修改了消費者

<dubbo:application name="consumer"/>

改為 

<dubbo:application name="consumer" default="false"/>
即可