application.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. spring:
  2. profiles:
  3. active: "local"
  4. mvc:
  5. format:
  6. date: yyyy-MM-dd HH:mm:ss
  7. throw-exception-if-no-handler-found: true
  8. application:
  9. name: dy-management
  10. devtools:
  11. livereload:
  12. enabled: true
  13. port: 9257
  14. restart:
  15. enabled: false
  16. main:
  17. allow-bean-definition-overriding: true
  18. jackson:
  19. date-format: yyyy-MM-dd HH:mm:ss
  20. time-zone: GMT+8
  21. default-property-inclusion: always
  22. servlet:
  23. multipart:
  24. maxFileSize: 50MB #单位必须大写MB或不写(即为B)
  25. maxRequestSize: 100MB
  26. resources:
  27. add-mappings: false
  28. ## MyBatis
  29. #mybatis:
  30. # # 搜索指定包别名
  31. # typeAliasesPackage: com.wucl.bike
  32. # # 配置mapper的扫描,找到所有的mapper.xml映射文件
  33. # mapperLocations: classpath*:mapper/**/*Mapper.xml
  34. mybatis-plus:
  35. mapper-locations: classpath*:mapper/**/*Mapper.xml
  36. type-aliases-package: com.dayou.entity
  37. #debug
  38. configuration:
  39. #关闭:org.apache.ibatis.logging.nologging.NoLoggingImpl 开启:org.apache.ibatis.logging.stdout.StdOutImpl
  40. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  41. global-config:
  42. db-config:
  43. id-type: auto
  44. logic-delete-field: deleted
  45. logic-delete-value: 1
  46. logic-not-delete-value: 0
  47. mapper:
  48. not-empty: true
  49. identity: MYSQL
  50. # PageHelper分页插件
  51. pagehelper:
  52. helperDialect: mysql
  53. reasonable: true
  54. supportMethodsArguments: true
  55. params: count=countSql
  56. server:
  57. servlet:
  58. context-path: /api
  59. compression:
  60. enabled: true
  61. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  62. min-response-size: 1024
  63. tomcat:
  64. max-connections: 1000
  65. threads:
  66. min-spare: 20
  67. max: 200
  68. accept-count: 200
  69. # 日志配置
  70. logging:
  71. level:
  72. com.local: info
  73. org.springframework: info
  74. #百度编辑器
  75. ueditor:
  76. config: config.json
  77. unified: false