src/main/java/com/nanometer/smartlab/controller/UserMngController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/WEB-INF/config.properties | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/WEB-INF/spring-mvc.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/WEB-INF/test/test.properties | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/nanometer/smartlab/controller/UserMngController.java
@@ -581,7 +581,7 @@ InputStream is = file.getInputstream(); String oldName = file.getFileName(); String newName = new Date().getTime() + oldName.substring(oldName.lastIndexOf(".")); String realPath = personImgPath + "/"; String realPath = personImgPath; File dest = new File(realPath, newName); if (!dest.getParentFile().exists()) { boolean rel = dest.getParentFile().mkdirs(); src/main/webapp/WEB-INF/config.properties
@@ -59,3 +59,5 @@ message.url = ${message.url} reagent.detail.price.api = ${reagent.detail.price.api} personImgPath = ${personImgPath} src/main/webapp/WEB-INF/spring-mvc.xml
@@ -55,7 +55,7 @@ </mvc:cors> <mvc:resources mapping="/upload/**" location="file:///d:/opt/file/smartlab/img/" /> <mvc:resources mapping="/upload/**" location="file:${personImgPath}" /> <!-- 静态资源(js、image等)的访问 --> <mvc:default-servlet-handler/> </beans> src/main/webapp/WEB-INF/test/test.properties
@@ -12,4 +12,4 @@ institute.copyright= Copyright\u00A92017 \u4E2D\u56FD\u79D1\u5B66\u9662\u82CF\u5DDE\u7EB3\u7C73\u6280\u672F\u4E0E\u7EB3\u7C73\u4EFF\u751F\u7814\u7A76\u6240\u00A0\u82CFICP\u590710220403\u53F7-6 message.url= https://sinanoaq.com:8095/api/sendmessage personImgPath = file:///d:/opt/file/smartlab/img/ personImgPath = d:/opt/file/smartlab/img/