application.yml
1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
spring:
profiles:
active: dev
base: com.hotent.sys.controller
title: @project.name@
description: @project.description@
version: @project.version@
platform: mysql
datasource:
name: dev
url: jdbc:mysql://192.168.1.211:3306/x7_portal_dev?serverTimezone=UTC&useSSL=false&&characterEncoding=UTF-8
username: root
password: root
# 使用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
maxPoolPreparedStatementPerConnectionSize: 20
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
# Server settings (ServerProperties)
server:
port: 8091
address: 0.0.0.0
sessionTimeout: 30
contextPath: /
session:
timeout: 30