server: port: 8081 spring: profiles: # active: dev active: prod # JSON配置 jackson: default-property-inclusion: non_null date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 datasource: druid: #连接初始化数量 initial-size: 1 #连接池中的最小空闲连接数 min-idle: 1 #配置连接池同时能维持的最大连接数 max-active: 20 #获取连接等待超时时间,单位是毫秒 # max-wait: 60000 #间隔多久进行一次检测,检测需要关闭的空闲连接 time-between-eviction-runs-millis: 60000 #一个连接在池中最小生存的时间,单位是毫秒 min-evictable-idle-time-millis: 300000 #一个连接在池中最大生存的时间,单位是毫秒 max-evictable-idle-time-millis: 900000 #Druid用来测试连接是否可用的SQL语句 validation-query: SELECT 'x' FROM DUAL #申请连接的时候检测 test-while-idle: true #申请连接时执行validationQuery检测连接是否有效 test-on-borrow: true #归还连接时执行validationQuery检测连接是否有效 test-on-return: false #是否缓存preparedStatement pool-prepared-statements: false #最大缓存 max-pool-prepared-statement-per-connection-size: 20 #监控统计用的filter:stat filters: stat #通过connectProperties属性来打开mergeSql功能;慢SQL记录 connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=10000 stat-view-servlet: #是否关闭druid管理界面 enabled: true login-username: root login-password: 123 #是否启用StatFilter默认值false,用于采集 web-jdbc 关联监控的数据。 web-stat-filter: enabled: true #排除一些静态资源,以提高效率 exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*" #需要监控的 url url-pattern: "/*" mybatis-plus: # xml文件路径 # mapper-locations: classpath:/mapper/**/*.xml,/mapper/*.xml mapper-locations: mapper/*.xml #实体扫描,多个package用逗号或者分号分隔 typeAliasesPackage: cc.xiaokuihua.xiaokuihuaentity.analysis.entity global-config: #数据库相关配置 db-config: #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID"; id-type: AUTO logic-delete-field: isDel logic-delete-value: 1 logic-not-delete-value: 0 banner: false #原生配置 configuration: #数据库字段驼峰下划线转换 map-underscore-to-camel-case: true cache-enabled: false call-setters-on-nulls: true jdbc-type-for-null: 'null' # 打印sql # sql只打印到控制台 # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # sql 打印到日志和控制台 log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl # 分页 pagehelper: helperDialect: mysql reasonable: true supportMethodsArguments: true params: count=countSql logging: config: classpath:logback-spring.xml xxl: job: accessToken: default_token admin: addresses: http://127.0.0.1:8800/xxl-job-admin executor: appname: alien-xxl-job-executor address: ip: port: 8899 logpath: /data/applogs/xxl-job/jobhandler logretentiondays: 30 #api key api: juhe: calendar: 195b18c40cf7cd0de6713ff5e4e0cf34