springboot启动的时候,通过注解的方式,加载xml配置文件,加载properties文件。记录下,方便速查。
一:加载properties文件
@PropertySource(value={"classpath:redis-key.properties"})
二:加载xml文件
@ImportResource(locations= {"classpath:spring-dubbo.xml"})
springboot启动的时候,通过注解的方式,加载xml配置文件,加载properties文件。记录下,方便速查。
一:加载properties文件
@PropertySource(value={"classpath:redis-key.properties"})
二:加载xml文件
@ImportResource(locations= {"classpath:spring-dubbo.xml"})