Spring其他注解和xml配置(不常用的)
常用的注解配置 https://www.cnblogs.com/xiaozhang666/p/13630121.html
@DubboComponentScan("cn.*")
使用dubbo的注解配置时扫描dubbo的Service
配置类
@Configuration @DubboComponentScan("cn.zys.service") public class DubboProviderConfig { @Bean public ApplicationConfig applicationConfig() { ApplicationConfig applicationConfig = new ApplicationConfig(); applicationConfig.setName("health-service-provider"); return applicationConfig; }
........... }