spring:注解:@PropertiesSource 读取配置文件中的数据

通过注解@PropertiesSource  指定并读取配置文件中的数据 实例: 在Controller中 获取dingding.properties文件属性值:   Controller中的配置:   配置classpath:
相关文章
相关标签/搜索