|
@@ -1,90 +0,0 @@
|
|
|
-server:
|
|
|
- port: 9001
|
|
|
- #https监听端口
|
|
|
- ssl:
|
|
|
- key-store: classpath:ipfcst.keystore
|
|
|
- key-store-password: jiayue6677*
|
|
|
- key-store-type: JKS
|
|
|
-spring:
|
|
|
- servlet:
|
|
|
- multipart:
|
|
|
- max-file-size: 4096MB # 单个文件的大小
|
|
|
- max-request-size: 4096MB # 上传文件的总大小
|
|
|
- datasource:
|
|
|
- type: com.alibaba.druid.pool.DruidDataSource
|
|
|
- # 系统启动时执行sql 初始化表内容
|
|
|
- data: classpath:sql/t_sys_user.sql
|
|
|
- sql-script-encoding: utf-8
|
|
|
- #schema:
|
|
|
- # 每次启动时均初始化表
|
|
|
- initialization-mode: always
|
|
|
- druid:
|
|
|
- # 数据源配置
|
|
|
- username: root
|
|
|
- password: '!QAZ2root'
|
|
|
- url: jdbc:mysql://localhost:3306/focus?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&autoReconnect=true&rewriteBatchedStatements=true&serverTimezone=Asia/Shanghai
|
|
|
- driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
- # 初始化 最小 最大
|
|
|
- initial-size: 10
|
|
|
- min-idle: 10
|
|
|
- max-active: 90
|
|
|
- # 配置获取连接等待超时的时间
|
|
|
- max-wait: 60000
|
|
|
- # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|
|
- time-between-eviction-runs-millis: 60000
|
|
|
- # 配置一个连接在池中最小生存的时间,单位是毫秒
|
|
|
- min-evictable-idle-time-millis: 300000
|
|
|
- validation-query: SELECT 1 FROM DUAL
|
|
|
- test-while-idle: true
|
|
|
- test-on-borrow: false
|
|
|
- test-on-return: false
|
|
|
- # 打开PSCache,并且指定每个连接上PSCache的大小
|
|
|
- poolPreparedStatements: true
|
|
|
- maxPoolPreparedStatementPerConnectionSize: 20
|
|
|
- # 配置多个英文逗号分隔
|
|
|
- filters: stat,wall
|
|
|
- # WebStatFilter配置,说明请参考Druid Wiki,配置_配置WebStatFilter
|
|
|
- # 是否启用StatFilter默认值true
|
|
|
- web-stat-filter:
|
|
|
- enabled: true
|
|
|
- url-pattern: /*
|
|
|
- exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
|
|
|
- session-stat-enable: false
|
|
|
- session-stat-max-count: 1000
|
|
|
- principal-cookie-name: admin
|
|
|
- principal-session-name: admin
|
|
|
- profile-enable: true
|
|
|
- # 根据配置中的url-pattern来访问内置监控页面,如果是上面的配置,内置监控页面的首页是/druid/index.html
|
|
|
- # http://loacalhsot:8081/druid
|
|
|
- stat-view-servlet:
|
|
|
- enabled: true
|
|
|
- url-pattern: /druid/* # 监控页面访问路径
|
|
|
- # 允许清空统计数据
|
|
|
- reset-enable: true
|
|
|
- login-username: admin
|
|
|
- login-password: 123456
|
|
|
- # StatViewSerlvet展示出来的监控信息比较敏感,是系统运行的内部情况,如果你需要做访问控制,可以配置allow和deny这两个参数
|
|
|
- # deny优先于allow,如果在deny列表中,就算在allow列表中,也会被拒绝。如果allow没有配置或者为空,则允许所有访问
|
|
|
- # 配置的格式
|
|
|
- # <IP>
|
|
|
- # 或者<IP>/<SUB_NET_MASK_size>其中128.242.127.1/24
|
|
|
- # 24表示,前面24位是子网掩码,比对的时候,前面24位相同就匹配,不支持IPV6。
|
|
|
- allow:
|
|
|
- deny:
|
|
|
- jpa:
|
|
|
- hibernate:
|
|
|
- naming:
|
|
|
- physical-strategy: com.jiayue.ipfcst.common.data.strategy.IpfcstNamingStrategy
|
|
|
- ddl-auto: update
|
|
|
- show-sql: false
|
|
|
-logging:
|
|
|
- config: classpath:logback-console.xml
|
|
|
-
|
|
|
-management:
|
|
|
- endpoints:
|
|
|
- web:
|
|
|
- exposure:
|
|
|
- include: '*'
|
|
|
- endpoint:
|
|
|
- health:
|
|
|
- show-details: ALWAYS
|