Browse Source

feat : 配置到nacos

bilingfeng 2 years ago
parent
commit
ee606d86d9

+ 1 - 25
game-module/game-manage/src/main/resources/bootstrap.yml

@@ -1,13 +1,8 @@
-# Tomcat
-server:
-  shutdown: graceful
-  port: 8092
-
 # Spring
 spring:
   application:
     # 应用名称
-    name: game-sdk
+    name: game-manage
   profiles:
     # 环境配置
     active: dev
@@ -29,23 +24,4 @@ spring:
         shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
         max-retry: 10
 
-  #redis数据库配置
-  redis:
-    host: 118.178.187.109
-    port: 6379
-    password: zx$2020ddd
-  #数据库配置
-  datasource:
-    driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://118.178.187.109:3306/zx-game?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
-    username: root
-    password: zxdev3306
-
-logging:
-  level:
-    root: warn
-    com.zanxiang.manage: warn
-    com.zanxiang.mybatis.mapper: debug
-    com.zanxiang.manager.domain.mapper: debug
-
 

+ 1 - 50
game-module/game-sdk/src/main/resources/bootstrap.yml

@@ -1,19 +1,8 @@
-# Tomcat
-server:
-  shutdown: graceful
-  port: 8091
-  domain: http://localhost:8091
-
-  servlet:
-    encoding:
-      charset: UTF-8
-#    context-path: /game-manage
-
 # Spring
 spring:
   application:
     # 应用名称
-    name: game-manage
+    name: game-sdk
   profiles:
     # 环境配置
     active: dev
@@ -35,44 +24,6 @@ spring:
         shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
         max-retry: 10
 
-  #redis数据库配置
-  redis:
-    host: 118.178.187.109
-    port: 6379
-    password: zx$2020ddd
-  #数据库配置
-  datasource:
-    driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://118.178.187.109:3306/zx-game?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
-    username: root
-    password: zxdev3306
-
-ali-sms:
-  accessKeyId: LTAI4G5ZxxRe4SFBua4KmMdC
-  accessKeySecret: mPPmaPVDxfMfmtrM3vsDJHTmud9SZn
-  defaultSignName: 赞象
-  defaultVerifyCodeTemplate: SMS_232080189
-
-auth:
-  qq-appId: 101933357
-  qq-appKey: 900292039ed5408d941dad762ab68383
-  vx-appId:
-  vx-appSecret:
-
-logging:
-  level:
-    root: warn
-    com.zanxiang.sdk: debug
-    com.zanxiang.mybatis.mapper: debug
-
-
-payConfig:
-  wx:
-    returnUrl: http://localhost:8091/pay/wxPayNotify
-  alipay:
-    returnUrl: http://localhost:8091/pay/alipaySynNotify
-    notifyUrl: http://localhost:8091/pay/notify
-