public Properties ReadProperties(String fileName) throws IOException {
Resource resource = new ClassPathResource(fileName);
return PropertiesLoaderUtils.loadProperties(resource);
}
Java读取application.properties文件
于 2022-08-19 16:59:09 首次发布