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

通过注解@PropertiesSource  指定并读取配置文件中的数据

实例:

在Controller中 获取dingding.properties文件属性值: 

 Controller中的配置:

猜你喜欢

转载自blog.csdn.net/weixin_38750084/article/details/87878410