Commit 1e356f01 authored by hezhen's avatar hezhen

修改配置

parent 4e0a0177
server: #server:
port: 8091 # port: 8091
tomcat: # tomcat:
uri-encoding: UTF-8 # uri-encoding: UTF-8
logging: #logging:
level: # level:
com.xxfc.platform.vehicle.mapper: debug # com.xxfc.platform.vehicle.mapper: debug
spring: #spring:
application: # application:
name: vehicle # name: vehicle
datasource: # datasource:
name: test # name: test
url: jdbc:mysql://${MYSQL_HOST:10.5.52.2}:${MYSQL_PORT:3306}/vehicle?useUnicode=true&characterEncoding=UTF8 # url: jdbc:mysql://${MYSQL_HOST:10.5.52.2}:${MYSQL_PORT:3306}/vehicle?useUnicode=true&characterEncoding=UTF8
username: root # username: root
password: xx2019fc # password: xx2019fc
# 使用druid数据源 # # 使用druid数据源
type: com.alibaba.druid.pool.DruidDataSource # type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver # driver-class-name: com.mysql.jdbc.Driver
filters: stat # filters: stat
maxActive: 20 # maxActive: 20
initialSize: 1 # initialSize: 1
maxWait: 60000 # maxWait: 60000
minIdle: 1 # minIdle: 1
timeBetweenEvictionRunsMillis: 60000 # timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000 # minEvictableIdleTimeMillis: 300000
validationQuery: select 'x' # validationQuery: select 'x'
testWhileIdle: true # testWhileIdle: true
testOnBorrow: false # testOnBorrow: false
testOnReturn: false # testOnReturn: false
poolPreparedStatements: true # poolPreparedStatements: true
maxOpenPreparedStatements: 20 # maxOpenPreparedStatements: 20
cloud: # cloud:
nacos: # nacos:
discovery: # discovery:
server-addr: 10.5.52.2:8848 # server-addr: 10.5.52.2:8848
sentinel: # sentinel:
transport: # transport:
dashboard: 10.5.52.2:8080 # dashboard: 10.5.52.2:8080
jackson: # jackson:
date-format: yyyy-MM-dd HH:mm:ss # date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8 # time-zone: GMT+8
default-property-inclusion: non_null # default-property-inclusion: non_null
#--------------------以下为redis相关配置---------------------- ##--------------------以下为redis相关配置----------------------
redis: # redis:
database: 2 # database: 2
host: ${REDIS_HOST:10.5.52.3} # host: ${REDIS_HOST:10.5.52.3}
port: ${REDIS_PORT:6379} # port: ${REDIS_PORT:6379}
password: xx2019fc # password: xx2019fc
jedis: # jedis:
pool: # pool:
max-active: 20 # max-active: 20
#--------------------以下为mybatis相关配置---------------------- ##--------------------以下为mybatis相关配置----------------------
mybatis: #mybatis:
type-aliases-package: com.xxfc.platform.vehicle.entity # type-aliases-package: com.xxfc.platform.vehicle.entity
mapper-locations: classpath*:mapper/*.xml # mapper-locations: classpath*:mapper/*.xml
basepackage: com.xxfc.platform.vehicle.mapper # basepackage: com.xxfc.platform.vehicle.mapper
xmlLocation: classpath*:mapper/*.xml # xmlLocation: classpath*:mapper/*.xml
configuration: # configuration:
map-underscore-to-camel-case: true # map-underscore-to-camel-case: true
#
#
#
#
#
#
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment