application.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #内置Tomcat容器配置
  2. server:
  3. port: #8080
  4. servlet:
  5. #应用路径,配置应用路径,可方便进行反向代理
  6. context-path:
  7. spring:
  8. profiles:
  9. #active: dev
  10. active: prod
  11. mvc:
  12. throw-exception-if-no-handler-found: true
  13. # aop
  14. #aop:
  15. #auto: true
  16. #proxy-target-class: true
  17. application:
  18. name: imageSynthesis
  19. jackson:
  20. date-format: yyyy-MM-dd HH:mm:ss
  21. time-zone: GMT+8
  22. # 文件大小限制
  23. servlet:
  24. multipart:
  25. max-file-size: 10MB
  26. max-request-size: 100MB
  27. # redis token信息
  28. redis:
  29. key:
  30. prefix:
  31. userToken: "user:token:"
  32. passwordError: "user:password:error:"
  33. permissionRefresh: "user:token:permissionRefresh:"
  34. expire:
  35. userToken: 604800 # 7天 7*24*3600
  36. passwordError: 3600 # 一个小时
  37. permissionRefresh: 604800 # 7天 7*24*3600
  38. allowMultipleLogin: true # 允许多处登陆
  39. #mybatis-plus
  40. mybatis-plus:
  41. global-config:
  42. db-config:
  43. #主键策略
  44. #id-type: auto
  45. field-strategy: not_empty
  46. #驼峰下划线转换
  47. column-underline: true
  48. #逻辑删除配置
  49. #logic-delete-value: 0
  50. #logic-not-delete-value: 1
  51. db-type: mysql
  52. #声明全局默认类名的对应的表的前缀
  53. #table-prefix: t_
  54. #设置统一的主键生成策略
  55. refresh: false
  56. configuration:
  57. #map-underscore-to-camel-case: true
  58. #cache-enabled: false
  59. #打印出sql语句
  60. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  61. #日志
  62. logging:
  63. config: classpath:logback-spring.xml
  64. #使用代码生成模块时 指定要生成的表存在于哪种数据库,可选值有【mysql、oracle、sqlServer】
  65. project:
  66. database: mysql