springboot加載配置文件的方法

springboot加載配置文件的方法 第一種方法:用PropertiesLoaderUtils進行加載,而後用map集合經行接收 Properties properties = PropertiesLoaderUtils.loadAllProperties("sql.properties"); Map<String, String> propertiesMap = new HashMap<Str
相關文章
相關標籤/搜索