application.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. spring:
  2. main:
  3. allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
  4. # redis:
  5. ## host: 49.4.50.80
  6. # host: 10.155.32.4
  7. # port: 6379
  8. # timeout: 100000
  9. # # 集群环境打开下面注释,单机不需要打开
  10. # # cluster:
  11. # # 集群信息
  12. # # nodes: xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx
  13. # # #默认值是5 一般当此值设置过大时,容易报:Too many Cluster redirections
  14. # # maxRedirects: 3
  15. # password: gdnxfd123
  16. # application:
  17. # name: test
  18. # jedis:
  19. # pool:
  20. # max-active: 8
  21. # min-idle: 0
  22. # max-idle: 8
  23. # max-wait: -1
  24. # database: 1
  25. autoconfigure:
  26. exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
  27. datasource:
  28. type: com.alibaba.druid.pool.DruidDataSource
  29. driver-class-name: oracle.jdbc.OracleDriver
  30. #外网
  31. # url: jdbc:oracle:thin:@49.4.50.80:1521:gdnxfd
  32. url: jdbc:oracle:thin:@192.168.1.105:1521:gdnxfd
  33. username: nxfdprod
  34. password: gdnxfd123
  35. oracle-schema=:
  36. # type: com.alibaba.druid.pool.DruidDataSource
  37. # url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8&serverTimezone=UTC
  38. # username: root
  39. # password: root
  40. # driver-class-name: com.mysql.jdbc.Driver
  41. druid:
  42. max-active: 20
  43. initial-size: 1
  44. min-idle: 3
  45. max-wait: 60000
  46. time-between-eviction-runs-millis: 60000
  47. min-evictable-idle-time-millis: 300000
  48. test-while-idle: true
  49. test-on-borrow: false
  50. test-on-return: false
  51. mybatis-plus:
  52. configuration:
  53. map-underscore-to-camel-case: true
  54. auto-mapping-behavior: full
  55. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  56. mapper-locations: classpath*:mapper/**/*Mapper.xml
  57. global-config:
  58. # 逻辑删除配置
  59. db-config:
  60. id-type: auto
  61. # 删除前
  62. logic-not-delete-value: 1
  63. # 删除后
  64. logic-delete-value: 0
  65. logging:
  66. level:
  67. root: info
  68. com.example: debug