You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

application.yml 1.6 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. server:
  2. port: 8080
  3. servlet:
  4. context-path: /demo
  5. spring:
  6. datasource:
  7. hikari:
  8. username: root
  9. password: root
  10. driver-class-name: com.mysql.cj.jdbc.Driver
  11. url: jdbc:mysql://127.0.0.1:3306/spring-boot-demo?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&failOverReadOnly=false&serverTimezone=GMT%2B8
  12. jpa:
  13. show-sql: true
  14. generate-ddl: false
  15. hibernate:
  16. ddl-auto: validate
  17. open-in-view: true
  18. properties:
  19. hibernate:
  20. dialect: org.hibernate.dialect.MySQL57InnoDBDialect
  21. resources:
  22. add-mappings: false
  23. mvc:
  24. throw-exception-if-no-handler-found: true
  25. redis:
  26. host: localhost
  27. port: 6379
  28. # 连接超时时间(记得添加单位,Duration)
  29. timeout: 10000ms
  30. # Redis默认情况下有16个分片,这里配置具体使用的分片
  31. # database: 0
  32. lettuce:
  33. pool:
  34. # 连接池最大连接数(使用负值表示没有限制) 默认 8
  35. max-active: 8
  36. # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1
  37. max-wait: -1ms
  38. # 连接池中的最大空闲连接 默认 8
  39. max-idle: 8
  40. # 连接池中的最小空闲连接 默认 0
  41. min-idle: 0
  42. jwt:
  43. config:
  44. key: xkcoding
  45. ttl: 600000
  46. remember: 604800000
  47. logging:
  48. level:
  49. com.xkcoding.rbac.security: debug
  50. custom:
  51. config:
  52. ignores:
  53. # 需要过滤的 post 请求
  54. post:
  55. - "/api/auth/login"
  56. - "/api/auth/logout"
  57. # 需要过滤的请求,不限方法
  58. pattern:
  59. - "/test/*"

一个用来深度学习并实战 spring boot 的项目,目前总共包含 66 个集成demo,已经完成 55 个。