Browse Source

修改数据源地址及接口地址

xielq 4 years ago
parent
commit
4ff3cf3848

+ 16 - 8
mianshi-im-api/src/main/resources/application.properties

@@ -6,7 +6,8 @@ logging.level=DEBUG
 admin.users=admin:admin,123:123
 
 #XMPP Properties(XMPP主机和端口以及推送用户配置)
-xmpp.host=113.105.74.140
+#xmpp.host=113.105.74.140
+xmpp.host=im.ubtob.net
 xmpp.port=5222
 xmpp.username=10005
 xmpp.password=10005
@@ -33,16 +34,19 @@ datasource.pool.logAbandoned=false
 datasource.pool.removeAbandoned=true
 datasource.pool.removeAbandonedTimeout=60
 datasource.pool.jdbcInterceptors=org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer
-datasource.pool.url=jdbc:mysql://10.10.100.18:3306/imapi?autoReconnect=true&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
+#datasource.pool.url=jdbc:mysql://10.10.100.18:3306/imapi?autoReconnect=true&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
+datasource.pool.url=jdbc:mysql://172.16.16.4:3306/imapi?autoReconnect=true&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
 
 #Mongodb Properties(数据库配置)
-mongo.host=10.10.100.22
+#mongo.host=10.10.100.22
+mongo.host=127.0.0.1
 mongo.port=27017
 mongo.dbName=imapi
 mongo.username=imapi
 
 #Redis Properties(缓存配置)
-redis.host=10.10.100.200
+#redis.host=10.10.100.200
+redis.host=127.0.0.1
 redis.port=6379
 
 #Open189 Properties(短信下发配置,基于天翼开放平台)
@@ -163,7 +167,11 @@ authorizationFilter.requestUriList[108]=/user/appDeskDetail
 authorizationFilter.requestUriList[109]=/user/appAd
 
 #remote services
-service.login=http://10.10.100.133:9990/api/user?_operate=fuzzyCheck
-service.resetPassword=http://10.10.100.133:9990/api/user?_operate=reset
-service.updatePassword=http://10.10.100.133:9990/api/user?_operate=modify
-service.saveUser=http://10.10.100.133:9990/api/user?appId=im
+#service.login=http://10.10.100.133:9990/api/user?_operate=fuzzyCheck
+#service.resetPassword=http://10.10.100.133:9990/api/user?_operate=reset
+#service.updatePassword=http://10.10.100.133:9990/api/user?_operate=modify
+#service.saveUser=http://10.10.100.133:9990/api/user?appId=im
+service.login=https://sso.ubtob.com/api/user?appId=im&_operate=fuzzyCheck
+service.resetPassword=https://sso.ubtob.com/api/user?appId=im&_operate=reset
+service.updatePassword=https://sso.ubtob.com/api/user?appId=im&_operate=modify
+service.saveUser=https://sso.ubtob.com/api/user?appId=im

+ 1 - 1
mianshi-service/src/main/java/com/shiku/util/MysqlDbManager.java

@@ -13,7 +13,7 @@ import java.sql.Statement;
  */
 public class MysqlDbManager {
 
-    private static final String URL = "jdbc:mysql://10.10.100.18:3306/imapi?autoReconnect=true&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true";
+    private static final String URL = "jdbc:mysql://172.16.16.4:3306/imapi?autoReconnect=true&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true";
     private static final String USER = "imapi";
     private static final String PASSWORD = "li1026";
     /*private static final String URL = "jdbc:mysql://10.10.100.18:3306/mobileapp?autoReconnect=true&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true";