pigx-upms-dev.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. description: '全宇宙最牛逼的Spring Cloud微服务开发脚手架'
  42. version: '1.2.4'
  43. #base-package: com.pig4cloud.pigx.admin.controller
  44. exclude-path:
  45. - /actuator/**
  46. - /error
  47. contact:
  48. name: '冷冷'
  49. email: 'wangiegie@gmail.com'
  50. url: 'https://gitee.wang/pig/pigx'