v1.1 后台admin native配置

This commit is contained in:
2022-10-13 17:20:20 +08:00
parent 9036c071fc
commit 19c0701300
3 changed files with 29 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
#MySQL数据库配置
spring:
datasource:
url: jdbc:mysql://118.194.255.128:3306/peko?useUnicode=true&characterEncoding=UTF-8&tinyInt1isBit=false
url: jdbc:mysql://118.194.255.128:3306/peko?useUnicode=true&characterEncoding=UTF-8&tinyInt1isBit=false&useSSL=false
username: root
password: anan@dev##
driver-class-name: com.mysql.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver
druid:
initial-size: 5
max-active: 120
@@ -49,7 +49,7 @@ spring:
config: |
singleServerConfig:
address: redis://118.194.255.128:6200
password: accompany@redis@#!
password: anan@dev@redis@#!
threads: 16
nettyThreads: 32
codec: !<org.redisson.codec.MarshallingCodec> {}

View File

@@ -1,8 +1,20 @@
spring:
application:
name: admin
name: web
profiles:
active: dev
active: native
cloud:
nacos:
config:
server-addr: 120.24.160.102:8848
namespace: 5edc3246-3e69-4be5-a32a-273f0a09ddf6
name: ${spring.application.name}
file-extension: yml
shared-dataids: application.yml,thirdpart.yml,pay.yml,sysconf.yml
refreshable-dataids: application.yml,thirdpart.yml,pay.yml,sysconf.yml
---
spring:
profiles: dev
cloud:
nacos:
config:

View File

@@ -130,4 +130,16 @@
</root>
</springProfile>
<!--开发环境:打印控制台-->
<springProfile name="native">
<logger name="com.accompany" level="DEBUG"/>
<logger name="com.xuanyin" level="DEBUG"/>
<root level="info">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="info_async_file"/>
<appender-ref ref="warn_async_file"/>
<appender-ref ref="error_async_file"/>
</root>
</springProfile>
</configuration>