标签:
public static String getDirPath() { Resource resource = null; Properties props = null; String driverClass = null; try { resource = new ClassPathResource("/data.properties"); props = PropertiesLoaderUtils.loadProperties(resource); driverClass= (String) props.get("wingPath"); } catch (IOException e) { e.printStackTrace(); } return driverClass; }
标签:
原文地址:http://www.cnblogs.com/zrui-xyu/p/5045913.html