application-dev.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. server:
  2. port: 8092
  3. servlet:
  4. context-path: /
  5. spring:
  6. main:
  7. allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
  8. autoconfigure:
  9. exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
  10. datasource:
  11. type: com.alibaba.druid.pool.DruidDataSource
  12. driver-class-name: oracle.jdbc.OracleDriver
  13. #外网
  14. # url: jdbc:oracle:thin:@10.83.68.165:1521:gdsj
  15. url: jdbc:oracle:thin:@192.168.2.215:1521:gdsj
  16. username: gdprod
  17. password: gd123
  18. oracle-schema=:
  19. # type: com.alibaba.druid.pool.DruidDataSource
  20. # url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8&serverTimezone=UTC
  21. # username: root
  22. # password: root
  23. # driver-class-name: com.mysql.jdbc.Driver
  24. druid:
  25. max-active: 20
  26. initial-size: 1
  27. min-idle: 3
  28. max-wait: 60000
  29. time-between-eviction-runs-millis: 60000
  30. min-evictable-idle-time-millis: 300000
  31. test-while-idle: true
  32. test-on-borrow: false
  33. test-on-return: false
  34. servlet:
  35. multipart:
  36. # 开启 multipart 上传功能
  37. enabled: true
  38. # 文件写入磁盘的阈值
  39. file-size-threshold: 2KB
  40. # 最大文件大小
  41. max-file-size: 200MB
  42. # 最大请求大小
  43. max-request-size: 215MB
  44. mybatis-plus:
  45. configuration:
  46. map-underscore-to-camel-case: true
  47. auto-mapping-behavior: full
  48. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  49. mapper-locations: classpath*:mapper/**/*Mapper.xml
  50. global-config:
  51. # 逻辑删除配置
  52. db-config:
  53. id-type: auto
  54. # 删除前
  55. logic-not-delete-value: 1
  56. # 删除后
  57. logic-delete-value: 0
  58. logging:
  59. level:
  60. root: info
  61. com.example: debug