server:
port: 8888
servlet:
context-path: /pshdhx
compression:
enabled: true
mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,images/*
use-forward-headers: true
tomcat:
remote-ip-header: X-Real-IP
protocal-header: X-Forwarded-Proto
management:
endpoints:
web:
expoosure:
include: metrics,httptrace
spring:
mail:
host: smtp.163.com
username: [email protected]
password: ?
properties:
mail:
smtp:
auto: true
starttls:
enable: true
required: true
##quartz定时任务,采用数据库方式
quartz:
job-store-type: jdbc
## json时间戳统一转换
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
aop:
proxy-target-class: true
## 配置freemarkeer
freemarker:
## 这是模板后缀名
suffix: .ftl
context-type: text/html
chartset: UTF-8
## 设置页面缓存
cache: false
template-loader-path:
- classpath:/templates
##设置静态文件路径,js css等
mvc:
static-path-pattern: /**
resources:
static-location: classpath:/static/,classpath:/public/
autoconfigure:
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
datesources:
druid:
stat-view-servlet:
loginUsername: pshdhx
loginPassword: 111111
dynamic:
druid: #全局druid参数,绝大部分值和默认保持一直。
# 连接池配置信息
# 初始化大小
initial-size: 5
min-idle: 5
maxActive: 20
#配置获取链接等待超时的时间
maxWait: 60000
timeBetweenEvictionRunsMillis: 30000
validationQuery: select 1 from dual
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
#打开PsCache,并且指定每个连接上的PSCache的大小
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,‘wall’用于防火墙
filters: stat,wall,slf4j
# 通过connectProperties,属性来打孔mergeSql功能: 慢sql记录
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
dataSource:
master:
url: jdbc:oracle:thin:@127.0.0.1:1521/orcl
username: pshdhx
password: ******
driver-class-name: oracle.jdbc.driver.OracleDriver
multi-datasource1:
url:
schema:
classpath: DATAS.sql
initialization-mode: always
#redis配置
redis
database: 0
host: 127.0.0.1
lettuce:
pool:
max-active: 8 #最大连接数据库的连接数,设0为没有限制
max-idle: 8 #最大等待链接中的数量,设0没有限制
max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设-1表示无限制。
min-idle: 0 #最小等待建立连接的数量,设0为没有限制
shutdown-timeout: 100ms
password: ''
port: 6379
jpa:
hibernate:
ddl-auto: update
show-sql: true
database: oracle
mybatis-plus:
mapper-locations: classpath*:com/pshdhx/modules/**/xml/*Mapper.xml
#configuraion:
#配置打印sql
#log-impl: org.apache.ibatis.logging.stout.StdOutImpl
#mybatis
#table
#auto: update
#model:
#pack: com.pshdhx.modules
#database
#type: oracle
pshdhx:
path:
upload: d://upFiles
webapp: d://webapp
#是否初始化数据库列表
isInitDb: false
#外部数据库配置
dbinfopro: /pshdhx/ibp/dictionary/dbconfig.properities
ukyesession: /pshdhx/data/ibp/session/
logUrl: http://127.0.0.1/user/login
【记事本手写,应该有格式有错误】
标签:springboot,##,pshdhx,druid,dev,application,com,text,true From: https://blog.51cto.com/u_15890333/5883978