摘要: 引言 SpringBoot中可以使用@Value直接resources目录下的配置文件中读取相关配置参数。但是非微服务模式下,可以使用类加载机制进行获取。 模板 public class PropertiesConfig { private static Properties properties; 阅读全文
posted @ 2022-04-11 20:04 Andya_net 阅读(13) 评论(0) 推荐(0) 编辑