pigx-upms-dev.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ## spring security 配置
  2. security:
  3. oauth2:
  4. client:
  5. client-id: pig
  6. client-secret: pig
  7. scope: server
  8. resource:
  9. token-info-uri: http://localhost:9999/auth/oauth/check_token
  10. # 数据源
  11. spring:
  12. datasource:
  13. type: com.zaxxer.hikari.HikariDataSource
  14. driver-class-name: com.mysql.jdbc.Driver
  15. username: root
  16. password: root
  17. url: jdbc:mysql://127.0.0.1:3306/pigx?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
  18. #mybaits-plus配置,修改主键类型,mapper.xml、type 别名等
  19. mybatis-plus:
  20. mapper-locations: classpath:/mapper/*Mapper.xml
  21. typeAliasesPackage: com.pig4cloud.pigx.admin.api.entity
  22. global-config:
  23. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  24. id-type: 0
  25. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  26. field-strategy: 1
  27. #驼峰下划线转换
  28. db-column-underline: true
  29. #刷新mapper 调试神器
  30. refresh-mapper: true
  31. # 逻辑删除字段
  32. logic-delete-value: 1
  33. logic-not-delete-value: 0
  34. #自定义SQL注入器
  35. sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
  36. configuration:
  37. map-underscore-to-camel-case: true
  38. cache-enabled: true
  39. # swagger相关配置
  40. swagger:
  41. authorization:
  42. authorization-scope-list:
  43. - scope: 'server'
  44. description: 'server all'
  45. - scope: 'read'
  46. description: 'read all'
  47. - scope: 'write'
  48. description: 'access all'
  49. exclude-path:
  50. - /actuator/**
  51. - /error