diff --git a/pom.xml b/pom.xml index 163606c..d8d6385 100644 --- a/pom.xml +++ b/pom.xml @@ -684,4 +684,6 @@ + + diff --git a/src/main/java/com/lq/cms/web/IndexController.java b/src/main/java/com/lq/cms/web/IndexController.java index 9af6c0a..57e777b 100755 --- a/src/main/java/com/lq/cms/web/IndexController.java +++ b/src/main/java/com/lq/cms/web/IndexController.java @@ -72,7 +72,7 @@ public class IndexController { context.getServerInfo(); DbInfo dbInfo = JdbcUtils.getDBInfo(); OsInfo osInfo = OsUtil.getInfo(); - String serverIp = NetUtil.getIP(); + String serverIp = NetUtil.getLocalIpAddr(); JvmInfo jvmInfo = JvmUtil.getInfo(); vo.setDbInfo(dbInfo); vo.setUserIP(userIp); diff --git a/src/main/profile/dev/jdbc.properties b/src/main/profile/dev/jdbc.properties index 2087517..8741005 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.110:3306/ssm?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8 +jdbc.url=jdbc:mysql://192.168.31.19:3306/ssm?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8 jdbc.user=root jdbc.password=mysql #--------数据库连接池配置 ------- 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 fb820a1..feb722f 100755 --- a/src/main/webapp/WEB-INF/views/jsp/cms/login.jsp +++ b/src/main/webapp/WEB-INF/views/jsp/cms/login.jsp @@ -71,7 +71,7 @@
-