修改配置文件,并且修改日志

This commit is contained in:
limqhz
2020-05-24 22:09:10 +08:00
parent 15e948d17e
commit eb2cc8050d
4 changed files with 39 additions and 16 deletions

View File

@@ -0,0 +1,16 @@
spring:
datasource:
url: jdbc:mysql://127.0.01:3306/smart_venue?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&useAffectedRows=true&useSSL=false
username: root
password: 123456
jpa:
show-sql: true
oss:
accessKeyId: LTAIlbtS4W2Xe4OV
accessKeySecret: qWMYkSfmXFtRoIv9q9OCbszcF9U7dX
protocol: http
name: smartvenue
endPoint: http://oss-cn-beijing.aliyuncs.com
url: https://smartvenue.oss-cn-beijing.aliyuncs.com/

View File

@@ -0,0 +1,17 @@
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/smart_venue?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&useAffectedRows=true
username: root
password: hyty1234
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
show-sql: true
oss:
accessKeyId: LTAIlbtS4W2Xe4OV
accessKeySecret: qWMYkSfmXFtRoIv9q9OCbszcF9U7dX
protocol: http
name: smartvenue
endPoint: http://oss-cn-beijing.aliyuncs.com
url: https://smartvenue.oss-cn-beijing.aliyuncs.com/

View File

@@ -8,12 +8,11 @@ server:
spring:
profiles:
include:
-dev
-prod
active: dev
datasource:
url: jdbc:mysql://127.0.0.1:3306/smart_venue?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&useAffectedRows=true
username: root
password: hyty1234
driver-class-name: com.mysql.cj.jdbc.Driver
# 数据库连接池配置
druid:
@@ -67,15 +66,6 @@ spring:
min-idle: 8
timeout: 60000
oss:
accessKeyId: LTAIlbtS4W2Xe4OV
accessKeySecret: qWMYkSfmXFtRoIv9q9OCbszcF9U7dX
protocol: http
name: smartvenue
endPoint: http://oss-cn-beijing.aliyuncs.com
url: https://smartvenue.oss-cn-beijing.aliyuncs.com/
# MyBatis Configuration
mybatis:
type-aliases-package: com.ydd.oms.entity
@@ -103,7 +93,7 @@ worker:
count: 2
so:
keepalive: true
backlog: 100
backlog: 128
reuseaddr: true
tcp_nodelay: true

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF8"?>
<configuration>
<jmxConfigurator />
<property name="LOG_HOME" value="/home/log/svoms"/>
<property name="LOG_HOME" value="~/home/log/svoms"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">