Explorar o código

后端发布环境修改

chrislee hai 1 mes
pai
achega
4ca8c1f3b7

+ 1 - 1
open-source-aps-boot/open-aps-system/src/main/resources/application-common.yml

@@ -4,7 +4,7 @@ aps:
     title: APS-API
 # 通用配置
 server:
-  port: 9090
+  port: 19090
   compression:
     enabled: true
     mime-types: application/json,application/xml,text/html,text/xml,text/plain,application/javascript

+ 23 - 0
open-source-aps-boot/open-aps-system/src/main/resources/application-prod.yml

@@ -0,0 +1,23 @@
+#spring 配置
+spring:
+  datasource:
+    url: jdbc:mysql://127.0.0.1:13306/aps-test?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
+    username: root
+    password: Asd#123456
+  data:
+    redis:
+      port: 16739
+      database: 6
+#是否启用swagger 配置
+aps:
+  swagger-enable: true
+# 日志级别配置
+logging:
+  level:
+    root: info
+    com:
+      medusa: debug
+    org:
+      springframework:
+        web: debug
+        security: debug

+ 1 - 29
open-source-aps-boot/open-aps-system/src/main/resources/redisson.yml

@@ -1,32 +1,4 @@
 # Redisson配置文件
 # org.redisson.spring.starter.RedissonProperties
 # org.redisson.config.Config
-# https://github.com/redisson/redisson/wiki/2.-Configuration
-
-singleServerConfig:
-  # Redis服务器地址
-  address: "redis://127.0.0.1:6379"
-  # 连接池大小
-  connectionPoolSize: 32
-  # 最小空闲连接数
-  connectionMinimumIdleSize: 8
-  # 连接超时时间(毫秒)
-  connectTimeout: 3000
-  # 命令等待超时时间(毫秒)
-  timeout: 10000
-  # 命令失败重试次数
-  retryAttempts: 3
-  # 命令重试间隔时间(毫秒)
-  retryInterval: 1500
-  # 数据库编号
-  database: 6
-  # Redis密码(如果有的话)
-#  password: "password"
-  # 启用SSL
-  sslEnableEndpointIdentification: false
-  # Ping连接间隔时间(毫秒)
-  pingConnectionInterval: 0
-  # 是否保持连接
-  keepAlive: false
-  # TCP NoDelay设置
-  tcpNoDelay: false
+# https://github.com/redisson/redisson/wiki/2.-Configuration