pigx-upms-dev.yml 844 B

123456789101112131415161718192021222324252627282930313233
  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 模块配置
  19. mybatis-plus:
  20. typeAliasesPackage: com.pig4cloud.pigx.admin.api.entity
  21. # swagger相关配置,覆盖全局配置
  22. swagger:
  23. authorization:
  24. authorization-scope-list:
  25. - scope: 'server'
  26. description: 'server all'
  27. - scope: 'read'
  28. description: 'read all'
  29. - scope: 'write'
  30. description: 'access all'