From e683c357cd9d58c119a540b6bcd4ad3daefec120 Mon Sep 17 00:00:00 2001 From: yidao620 Date: Wed, 28 Feb 2018 11:22:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9IP=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app-manage-api/src/main/resources/application.yml | 4 ++-- .../java/com/xncoding/jwt/socket/client/SocketClient.java | 2 +- .../java/com/xncoding/jwt/socket/client/html/index.html | 2 +- app-manage/src/main/resources/application.yml | 8 ++++---- springboot-cache/src/main/resources/application.yml | 4 ++-- springboot-cache/src/main/resources/sql/t_user.sql | 4 ++-- springboot-mybatis/src/main/resources/application.yml | 4 ++-- springboot-redis/src/main/resources/application.yml | 4 ++-- springboot-redis/src/main/resources/sql/t_user.sql | 4 ++-- springboot-shiro/src/main/resources/application.yml | 8 ++++---- springboot-transaction/src/main/resources/application.yml | 2 +- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/app-manage-api/src/main/resources/application.yml b/app-manage-api/src/main/resources/application.yml index 9f72be7..88256ae 100644 --- a/app-manage-api/src/main/resources/application.yml +++ b/app-manage-api/src/main/resources/application.yml @@ -53,7 +53,7 @@ logging: spring: profiles: dev datasource: - url: jdbc:mysql://123.207.66.156:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 + url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: ****** thymeleaf: @@ -79,7 +79,7 @@ logging: spring: profiles: test datasource: - url: jdbc:mysql://123.207.66.156:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 + url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: ****** thymeleaf: diff --git a/app-manage-api/src/test/java/com/xncoding/jwt/socket/client/SocketClient.java b/app-manage-api/src/test/java/com/xncoding/jwt/socket/client/SocketClient.java index 1f794c2..501466d 100644 --- a/app-manage-api/src/test/java/com/xncoding/jwt/socket/client/SocketClient.java +++ b/app-manage-api/src/test/java/com/xncoding/jwt/socket/client/SocketClient.java @@ -33,7 +33,7 @@ public class SocketClient { options.forceNew = true; options.query = "username=test1&password=test1&appid=com.xncoding.apay2"; socket = IO.socket("http://localhost:9099/", options); -// socket = IO.socket("http://123.207.66.156:9099/", options); +// socket = IO.socket("http://127.0.0.1:9099/", options); socket.on(Socket.EVENT_CONNECT, new Emitter.Listener() { @Override public void call(Object... args) { diff --git a/app-manage-api/src/test/java/com/xncoding/jwt/socket/client/html/index.html b/app-manage-api/src/test/java/com/xncoding/jwt/socket/client/html/index.html index 749e2a9..ab4810b 100644 --- a/app-manage-api/src/test/java/com/xncoding/jwt/socket/client/html/index.html +++ b/app-manage-api/src/test/java/com/xncoding/jwt/socket/client/html/index.html @@ -31,7 +31,7 @@ var userName = 'user' + Math.floor((Math.random()*1000)+1); - var socket = io.connect('http://123.207.66.156:9099?username=' + userName + '&password=123456'); + var socket = io.connect('http://127.0.0.1:9099?username=' + userName + '&password=123456'); socket.on('connect', function() { output('Client has connected to the server!'); diff --git a/app-manage/src/main/resources/application.yml b/app-manage/src/main/resources/application.yml index 373f23a..92c9e41 100644 --- a/app-manage/src/main/resources/application.yml +++ b/app-manage/src/main/resources/application.yml @@ -61,7 +61,7 @@ logging: spring: profiles: dev datasource: - url: jdbc:mysql://123.207.66.156:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 + url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: ****** thymeleaf: @@ -74,7 +74,7 @@ xncoding: files-url-prefix: https://show.xncoding.net/files/ # 文件访问URL前缀 pics-path: E:/home/ pics-url-prefix: https://show.xncoding.net/pics/ # 图片访问URL前缀 - posapi-url-prefix: http://123.207.66.156:9095 + posapi-url-prefix: http://127.0.0.1:9095 logging: level: @@ -92,7 +92,7 @@ logging: spring: profiles: test datasource: - url: jdbc:mysql://123.207.66.156:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 + url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: ****** thymeleaf: @@ -106,7 +106,7 @@ xncoding: pics-path: /usr/share/nginx/html/pics/ pics-url-prefix: https://show.xncoding.net/pics/ # 图片访问URL前缀 # posapi-url-prefix: http://posapi.enzhico.net - posapi-url-prefix: http://123.207.66.156:9095 + posapi-url-prefix: http://127.0.0.1:9095 logging: level: diff --git a/springboot-cache/src/main/resources/application.yml b/springboot-cache/src/main/resources/application.yml index 01739b4..2842f84 100644 --- a/springboot-cache/src/main/resources/application.yml +++ b/springboot-cache/src/main/resources/application.yml @@ -10,7 +10,7 @@ spring: profiles: active: dev datasource: - url: jdbc:mysql://123.207.66.156:3306/test?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 + url: jdbc:mysql://127.0.0.1:3306/test?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: ****** @@ -43,7 +43,7 @@ spring: cache: type: REDIS redis: - host: 123.207.66.156 + host: 127.0.0.1 port: 6379 timeout: 0 database: 0 diff --git a/springboot-cache/src/main/resources/sql/t_user.sql b/springboot-cache/src/main/resources/sql/t_user.sql index 9d042a4..7f1e4b8 100644 --- a/springboot-cache/src/main/resources/sql/t_user.sql +++ b/springboot-cache/src/main/resources/sql/t_user.sql @@ -1,9 +1,9 @@ /* Navicat MySQL Data Transfer -Source Server : 123.207.66.156-mysql +Source Server : 127.0.0.1-mysql Source Server Version : 50718 -Source Host : 123.207.66.156:3306 +Source Host : 127.0.0.1:3306 Source Database : test Target Server Type : MYSQL diff --git a/springboot-mybatis/src/main/resources/application.yml b/springboot-mybatis/src/main/resources/application.yml index 992edb8..ae9468f 100644 --- a/springboot-mybatis/src/main/resources/application.yml +++ b/springboot-mybatis/src/main/resources/application.yml @@ -34,7 +34,7 @@ logging: spring: profiles: dev datasource: - url: jdbc:mysql://123.207.66.156:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 + url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: ****** thymeleaf: @@ -56,7 +56,7 @@ logging: spring: profiles: test datasource: - url: jdbc:mysql://123.207.66.156:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 + url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: ****** thymeleaf: diff --git a/springboot-redis/src/main/resources/application.yml b/springboot-redis/src/main/resources/application.yml index d36c7fc..1890d9d 100644 --- a/springboot-redis/src/main/resources/application.yml +++ b/springboot-redis/src/main/resources/application.yml @@ -7,7 +7,7 @@ spring: profiles: active: dev datasource: - url: jdbc:mysql://123.207.66.156:3306/test?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 + url: jdbc:mysql://127.0.0.1:3306/test?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: ****** @@ -40,7 +40,7 @@ spring: cache: type: REDIS redis: - host: 123.207.66.156 + host: 127.0.0.1 port: 6379 timeout: 0 database: 0 diff --git a/springboot-redis/src/main/resources/sql/t_user.sql b/springboot-redis/src/main/resources/sql/t_user.sql index 9d042a4..7f1e4b8 100644 --- a/springboot-redis/src/main/resources/sql/t_user.sql +++ b/springboot-redis/src/main/resources/sql/t_user.sql @@ -1,9 +1,9 @@ /* Navicat MySQL Data Transfer -Source Server : 123.207.66.156-mysql +Source Server : 127.0.0.1-mysql Source Server Version : 50718 -Source Host : 123.207.66.156:3306 +Source Host : 127.0.0.1:3306 Source Database : test Target Server Type : MYSQL diff --git a/springboot-shiro/src/main/resources/application.yml b/springboot-shiro/src/main/resources/application.yml index 373f23a..92c9e41 100644 --- a/springboot-shiro/src/main/resources/application.yml +++ b/springboot-shiro/src/main/resources/application.yml @@ -61,7 +61,7 @@ logging: spring: profiles: dev datasource: - url: jdbc:mysql://123.207.66.156:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 + url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: ****** thymeleaf: @@ -74,7 +74,7 @@ xncoding: files-url-prefix: https://show.xncoding.net/files/ # 文件访问URL前缀 pics-path: E:/home/ pics-url-prefix: https://show.xncoding.net/pics/ # 图片访问URL前缀 - posapi-url-prefix: http://123.207.66.156:9095 + posapi-url-prefix: http://127.0.0.1:9095 logging: level: @@ -92,7 +92,7 @@ logging: spring: profiles: test datasource: - url: jdbc:mysql://123.207.66.156:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 + url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: ****** thymeleaf: @@ -106,7 +106,7 @@ xncoding: pics-path: /usr/share/nginx/html/pics/ pics-url-prefix: https://show.xncoding.net/pics/ # 图片访问URL前缀 # posapi-url-prefix: http://posapi.enzhico.net - posapi-url-prefix: http://123.207.66.156:9095 + posapi-url-prefix: http://127.0.0.1:9095 logging: level: diff --git a/springboot-transaction/src/main/resources/application.yml b/springboot-transaction/src/main/resources/application.yml index db6510c..cb1a0ee 100644 --- a/springboot-transaction/src/main/resources/application.yml +++ b/springboot-transaction/src/main/resources/application.yml @@ -15,7 +15,7 @@ spring: profiles: active: dev datasource: - url: jdbc:mysql://123.207.66.156:3306/test?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 + url: jdbc:mysql://127.0.0.1:3306/test?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: ******