From 05466b135686b3761a1d520c22bb83388aa46aae Mon Sep 17 00:00:00 2001 From: qi_liang Date: Mon, 16 Sep 2019 13:43:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF-=E4=BF=AE=E6=94=B9=E7=99=BB?= =?UTF-8?q?=E9=99=86=E7=94=A8=E6=88=B7=E8=B5=84=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lq/cms/web/sys/UserController.java | 2 +- src/main/profile/dev/jdbc.properties | 2 +- src/main/profile/dev/redis.properties | 2 +- src/main/webapp/WEB-INF/views/jsp/cms/login.jsp | 2 +- src/main/webapp/WEB-INF/views/jsp/cms/main/head.jsp | 11 ++++++++--- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/lq/cms/web/sys/UserController.java b/src/main/java/com/lq/cms/web/sys/UserController.java index 08436e2..433b2e6 100755 --- a/src/main/java/com/lq/cms/web/sys/UserController.java +++ b/src/main/java/com/lq/cms/web/sys/UserController.java @@ -143,7 +143,7 @@ public class UserController { } //内部方法 ,上传文件,并返回文件路径 - private String upLoadFile(MultipartFile multipartFile){ + final private String upLoadFile(MultipartFile multipartFile){ String newFileName = null; if (multipartFile!=null && multipartFile.getSize()>0){ UUID uuid = UUID.randomUUID(); diff --git a/src/main/profile/dev/jdbc.properties b/src/main/profile/dev/jdbc.properties index 8741005..cf92f01 100644 --- a/src/main/profile/dev/jdbc.properties +++ b/src/main/profile/dev/jdbc.properties @@ -1,6 +1,6 @@ #--------- jdbc 配置--------- jdbc.driver=com.mysql.jdbc.Driver -jdbc.url=jdbc:mysql://192.168.31.19:3306/ssm?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8 +jdbc.url=jdbc:mysql://localhost:3306/ssm?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8 jdbc.user=root jdbc.password=mysql #--------数据库连接池配置 ------- diff --git a/src/main/profile/dev/redis.properties b/src/main/profile/dev/redis.properties index b61b6af..9b38d93 100644 --- a/src/main/profile/dev/redis.properties +++ b/src/main/profile/dev/redis.properties @@ -1,4 +1,4 @@ -redis.host=192.168.31.19 +redis.host=localhost redis.port=6379 redis.pass= redis.timeout=-1 diff --git a/src/main/webapp/WEB-INF/views/jsp/cms/login.jsp b/src/main/webapp/WEB-INF/views/jsp/cms/login.jsp index 4036cbc..5ca4392 100755 --- a/src/main/webapp/WEB-INF/views/jsp/cms/login.jsp +++ b/src/main/webapp/WEB-INF/views/jsp/cms/login.jsp @@ -52,7 +52,7 @@

- cms + ssm 管理后台应用

© 星期八

diff --git a/src/main/webapp/WEB-INF/views/jsp/cms/main/head.jsp b/src/main/webapp/WEB-INF/views/jsp/cms/main/head.jsp index 7858c4f..be29c6a 100755 --- a/src/main/webapp/WEB-INF/views/jsp/cms/main/head.jsp +++ b/src/main/webapp/WEB-INF/views/jsp/cms/main/head.jsp @@ -32,7 +32,7 @@