EnvUtil常用方法
1.getMestarHome():String
说明:获得系统中的MestarHome 首先从环境变量中读取,如读取不到从application.properties中读取
2.getMestarLang():String
说明:获得application.properties中的lang属性
3.getProperties(String key):String
说明:得到其他任意定义在application properties里的变量
4.getMestarHomeApplicationProperties():Properties
说明:获取mestar_home下的application.properties中的属性值,提升效率避免多次读取文件
5.getMestarHomeProperties(String propertiesName):Properties
WebPathUtil常用方法
1.getWebClassesAbsPath(Class<?> myClass):String
2.getWebRoot():String
3.getWebInfPath():String
4.getWebClassesPath():String
说明:web的WEB-INF/classes的路径