在resources 目录下定义多个application-bean{xxxxx}.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"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="userServiceImpl" class="com.dubbo.provider.service.UserServiceImpl">
</bean>
</beans>
spring boot 加载xml的方式使用@ImportResource 标签
@Configuration
@ImportResource(locations = {"classpath:application-bean*.xml"})
public class Config {
}