application.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. server:
  2. port: 10086
  3. # 请求头最大大小 10MB
  4. max-http-header-size: 10485760
  5. servlet:
  6. encoding:
  7. charset: UTF-8
  8. spring:
  9. #resources:
  10. #指定静态资源路径,默认为classpath:[/META-INF/resources/,/resources/, /static/, /public/]以及context:/
  11. #static-locations: {classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/images,classpath:/static/images/}
  12. datasource:
  13. driver-class-name: com.mysql.jdbc.Driver
  14. #url: jdbc:mysql://180.76.56.118:3306/news_website?useSSL=false&useUnicode=true&characterEncoding=UTF8&serverTimezone=UTC
  15. url: jdbc:mysql://101.35.139.78:3306/sqgxy-xxydz-news?useSSL=false&useUnicode=true&characterEncoding=UTF8&serverTimezone=UTC
  16. #url: jdbc:mysql://180.76.56.118:3306/sqgxy-xxydz-new-localhost?useSSL=false&useUnicode=true&characterEncoding=UTF8&serverTimezone=UTC
  17. username: sqgxy-xxydz-news
  18. password: prnte57F7eskjb3G
  19. jackson:
  20. # 使用24小时的时间格式
  21. default-property-inclusion: NON_NULL
  22. # 设置时区为东八区
  23. time-zone: GMT+8
  24. date-format: yyyy-MM-dd
  25. http:
  26. servlet:
  27. multipart:
  28. max-file-size: 10MB
  29. max-request-size: 10MB
  30. mybatis-plus:
  31. # 枚举类所在包
  32. type-enums-package: sqgxy.xxydz.enums
  33. configuration:
  34. #打印日志sql
  35. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  36. # 开启驼峰命名规则
  37. map-underscore-to-camel-case: true
  38. # 枚举映射
  39. default-enum-type-handler: org.apache.ibatis.type.EnumOrdinalTypeHandler