springboot读取配置文件

  

Resource resource = new ClassPathResource(“application.properties”);
Properties props = PropertiesLoaderUtils.loadProperties(resource);
原文地址:https://www.cnblogs.com/notchangeworld/p/13565610.html