SpringBoot如何在不同的环境中给配置类注入相应的参数

@Component
@ProoertySource(prefix = "syspro")
@propertySource(ignoreResourceNotFound=true,value = "classpath:application-${spring.profiles.active}.properties")

你可能感兴趣的:(Spring,Boot)