Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
1e356f01
Commit
1e356f01
authored
May 24, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置
parent
4e0a0177
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
65 deletions
+65
-65
application.yml
...icle/xx-vehicle-server/src/main/resources/application.yml
+65
-65
No files found.
xx-vehicle/xx-vehicle-server/src/main/resources/application.yml
View file @
1e356f01
server
:
port
:
8091
tomcat
:
uri-encoding
:
UTF-8
logging
:
level
:
com.xxfc.platform.vehicle.mapper
:
debug
spring
:
application
:
name
:
vehicle
datasource
:
name
:
test
url
:
jdbc:mysql://${MYSQL_HOST:10.5.52.2}:${MYSQL_PORT:3306}/vehicle?useUnicode=true&characterEncoding=UTF8
username
:
root
password
:
xx2019fc
# 使用druid数据源
type
:
com.alibaba.druid.pool.DruidDataSource
driver-class-name
:
com.mysql.jdbc.Driver
filters
:
stat
maxActive
:
20
initialSize
:
1
maxWait
:
60000
minIdle
:
1
timeBetweenEvictionRunsMillis
:
60000
minEvictableIdleTimeMillis
:
300000
validationQuery
:
select 'x'
testWhileIdle
:
true
testOnBorrow
:
false
testOnReturn
:
false
poolPreparedStatements
:
true
maxOpenPreparedStatements
:
20
cloud
:
nacos
:
discovery
:
server-addr
:
10.5.52.2:8848
sentinel
:
transport
:
dashboard
:
10.5.52.2:8080
jackson
:
date-format
:
yyyy-MM-dd HH:mm:ss
time-zone
:
GMT+8
default-property-inclusion
:
non_null
#--------------------以下为redis相关配置----------------------
redis
:
database
:
2
host
:
${REDIS_HOST:10.5.52.3}
port
:
${REDIS_PORT:6379}
password
:
xx2019fc
jedis
:
pool
:
max-active
:
20
#--------------------以下为mybatis相关配置----------------------
mybatis
:
type-aliases-package
:
com.xxfc.platform.vehicle.entity
mapper-locations
:
classpath*:mapper/*.xml
basepackage
:
com.xxfc.platform.vehicle.mapper
xmlLocation
:
classpath*:mapper/*.xml
configuration
:
map-underscore-to-camel-case
:
true
#
server:
#
port: 8091
#
tomcat:
#
uri-encoding: UTF-8
#
logging:
#
level:
#
com.xxfc.platform.vehicle.mapper: debug
#
spring:
#
application:
#
name: vehicle
#
datasource:
#
name: test
#
url: jdbc:mysql://${MYSQL_HOST:10.5.52.2}:${MYSQL_PORT:3306}/vehicle?useUnicode=true&characterEncoding=UTF8
#
username: root
#
password: xx2019fc
#
# 使用druid数据源
#
type: com.alibaba.druid.pool.DruidDataSource
#
driver-class-name: com.mysql.jdbc.Driver
#
filters: stat
#
maxActive: 20
#
initialSize: 1
#
maxWait: 60000
#
minIdle: 1
#
timeBetweenEvictionRunsMillis: 60000
#
minEvictableIdleTimeMillis: 300000
#
validationQuery: select 'x'
#
testWhileIdle: true
#
testOnBorrow: false
#
testOnReturn: false
#
poolPreparedStatements: true
#
maxOpenPreparedStatements: 20
#
cloud:
#
nacos:
#
discovery:
#
server-addr: 10.5.52.2:8848
#
sentinel:
#
transport:
#
dashboard: 10.5.52.2:8080
#
jackson:
#
date-format: yyyy-MM-dd HH:mm:ss
#
time-zone: GMT+8
#
default-property-inclusion: non_null
#
#
--------------------以下为redis相关配置----------------------
#
redis:
#
database: 2
#
host: ${REDIS_HOST:10.5.52.3}
#
port: ${REDIS_PORT:6379}
#
password: xx2019fc
#
jedis:
#
pool:
#
max-active: 20
#
#
--------------------以下为mybatis相关配置----------------------
#
mybatis:
#
type-aliases-package: com.xxfc.platform.vehicle.entity
#
mapper-locations: classpath*:mapper/*.xml
#
basepackage: com.xxfc.platform.vehicle.mapper
#
xmlLocation: classpath*:mapper/*.xml
#
configuration:
#
map-underscore-to-camel-case: true
#
#
#
#
#
#
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment