application.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. server:
  2. # 端口
  3. port: 10100
  4. servlet:
  5. # 访问路径
  6. context-path: /
  7. tomcat:
  8. # tomcat的URI编码
  9. uri-encoding: UTF-8
  10. # Spring配置
  11. spring:
  12. # 环境设置
  13. profiles:
  14. active: dev
  15. # 数据源配置
  16. datasource:
  17. type: com.alibaba.druid.pool.DruidDataSource
  18. driverClassName: org.postgresql.Driver
  19. druid:
  20. url: jdbc:postgresql://${IOC_DB_IP:127.0.0.1}:${IOC_DB_PORT:5433}/ioc?currentSchema=public&stringtype=unspecified&u003fuseUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&serverTimezone=PRC&useSSL=false&tinyInt1isBit=false
  21. username: ${IOC_DB_USER:postgres}
  22. password: ${IOC_DB_PASSWORD:SKYversation0816}
  23. # 初始连接数
  24. initialSize: 5
  25. # 最小连接池数量
  26. minIdle: 10
  27. # 最大连接池数量
  28. maxActive: 20
  29. # 配置获取连接等待超时的时间
  30. maxWait: 60000
  31. # 配置连接超时时间
  32. connectTimeout: 30000
  33. # 配置网络超时时间
  34. socketTimeout: 60000
  35. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  36. timeBetweenEvictionRunsMillis: 60000
  37. # 配置一个连接在池中最小生存的时间,单位是毫秒
  38. minEvictableIdleTimeMillis: 300000
  39. # 配置一个连接在池中最大生存的时间,单位是毫秒
  40. maxEvictableIdleTimeMillis: 900000
  41. # 配置检测连接是否有效
  42. validationQuery: SELECT 1
  43. testWhileIdle: true
  44. testOnBorrow: false
  45. testOnReturn: false
  46. webStatFilter:
  47. enabled: true
  48. # 控制台设置
  49. statViewServlet:
  50. enabled: true
  51. allow:
  52. url-pattern: /druid/*
  53. login-username: iocDbAdmin
  54. login-password: 123456
  55. filter:
  56. stat:
  57. enabled: true
  58. # 慢SQL记录
  59. log-slow-sql: true
  60. slow-sql-millis: 1000
  61. merge-sql: true
  62. wall:
  63. config:
  64. multi-statement-allow: true
  65. # redis 配置
  66. redis:
  67. host: ${IOC_REDIS_IP:127.0.0.1}
  68. port: ${IOC_REDIS_PORT:6379}
  69. database: ${IOC_REDIS_DB:0}
  70. password: ${IOC_REDIS_PASSWORD:}
  71. # json 配置
  72. jackson:
  73. time-zone: GMT+8
  74. date-format: yyyy-MM-dd HH:mm:ss
  75. # MyBatis
  76. mybatis-plus:
  77. # 搜索指定包别名
  78. type-aliases-package: com.sky.**.entity.domain
  79. # 配置mapper xml的扫描路径
  80. mapperLocations: classpath*:mapper/**/*Mapper.xml
  81. configuration:
  82. # 字段名驼峰映射
  83. map-underscore-to-camel-case: false
  84. # 日志输出
  85. log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  86. global-config:
  87. # 启动时logo输出
  88. banner: false
  89. # PageHelper分页插件
  90. pagehelper:
  91. helperDialect: postgresql
  92. supportMethodsArguments: true
  93. params: count=countSql
  94. # Swagger配置
  95. swagger:
  96. # 是否开启swagger
  97. enabled: false
  98. # 日志配置
  99. logging:
  100. level:
  101. com.sky: info
  102. # 自定义配置
  103. sky:
  104. name: 智慧运营管理中心