application.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. logging:
  2. level:
  3. root: INFO
  4. druid.sql.Statement: DEBUG
  5. jdbc.sqltiming: 'OFF'
  6. jdbc.audit: 'OFF'
  7. jdbc.resultset: 'OFF'
  8. jdbc.resultsettable: 'OFF'
  9. jdbc.sqlonly: 'OFF'
  10. jdbc.connection: 'OFF'
  11. org.apache.tomcat.util.net.NioEndpoint: 'OFF'
  12. org.springframework.boot.web.filter.OrderedRequestContextFilter: 'OFF'
  13. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer: 'OFF'
  14. #org.springframework.cache.interceptor.CacheInterceptor: TRACE
  15. #org.springframework.jdbc.datasource.DataSourceTransactionManager: DEBUG
  16. pattern:
  17. console: '%d [t:%thread] [~p:%X{process_id}] %-5level %logger{32} - %msg%n'
  18. file: '%d [t:%thread] [~p:%X{process_id}] %-5level %logger{32} - %msg%n'
  19. #管理端
  20. management:
  21. security.enabled: false
  22. context-path: /manage
  23. add-application-context-header: false
  24. yvan:
  25. debug: ${debug}
  26. server:
  27. tomcat:
  28. remote_ip_header: x-forwarded-for
  29. protocol_header: x-forwarded-proto
  30. port-header: X-Forwarded-Port
  31. use-forward-headers: true
  32. #error:
  33. # whitelabel:
  34. # enabled: ${debug}
  35. endpoints:
  36. shutdown.enabled: false
  37. #error:
  38. # whitelabel.enabled: false
  39. spring:
  40. profiles.active: peig
  41. application:
  42. name: bofeng-web
  43. #mvc:
  44. # throw-exception-if-no-handler-found: true
  45. aop:
  46. auto: true
  47. proxy-target-class: true
  48. jackson:
  49. date-format: yyyy-MM-dd HH:mm:ss
  50. time-zone: GMT+8
  51. serialization:
  52. write_dates_as_timestamps: true
  53. http:
  54. encoding:
  55. charset: utf-8
  56. force: true
  57. multipart:
  58. maxFileSize: 2Mb
  59. maxRequestSize: 12Mb
  60. cache:
  61. type: redis
  62. expire-time-seconds: 300
  63. redis:
  64. timeout: 2000
  65. pool:
  66. max-active: 500
  67. max-wait: -1
  68. max-idle: 100
  69. min-idle: 20
  70. datasource:
  71. #type: com.alibaba.druid.pool.DruidDataSource
  72. druid: true
  73. maxActive: 30
  74. initialSize: 1
  75. maxWait: 60000
  76. minIdle: 5
  77. maxIdle: 20
  78. timeBetweenEvictionRunsMillis: 60000
  79. minEvictableIdleTimeMillis: 1200000
  80. validationQuery: select 1
  81. testWhileIdle: true
  82. testOnBorrow: true
  83. testOnReturn: false
  84. poolPreparedStatements: true
  85. maxOpenPreparedStatements: 20
  86. filters: stat,wall
  87. freemarker:
  88. allow-request-override: false
  89. allow-session-override: false
  90. charset: UTF-8
  91. check-template-location: true
  92. content-type: text/html
  93. enabled: true
  94. expose-request-attributes: false
  95. expose-session-attributes: false
  96. expose-spring-macro-helpers: true
  97. prefer-file-system-access: true
  98. settings.number_format: 0.##
  99. prefix:
  100. request-context-attribute:
  101. suffix:
  102. cache: false
  103. template-loader-path: ${ui-path}/templates
  104. resources:
  105. static-locations: ${ui-path}
  106. bofeng:
  107. adminMenu:
  108. - name: '用户管理'
  109. menuId: 'user'
  110. url: '/admin/user.html'
  111. - name: '报表'
  112. menuId: 'report'
  113. childs:
  114. - name: '按订单统计'
  115. menuId: 'report_order'
  116. url: '/admin/report_order.html'
  117. - name: '按时间统计'
  118. menuId: 'report_time'
  119. url: '/admin/report_time.html'
  120. - name: '场地管理'
  121. menuId: 'place'
  122. url: '/admin/place.html'
  123. - name: '房间管理'
  124. menuId: 'room'
  125. url: '/admin/room.html'
  126. #- name: '参数设置'
  127. # menuId: 'setting'
  128. # url: '/admin/setting.html'
  129. cashierMenu:
  130. - name: '结算'
  131. menuId: 'settle'
  132. url: '/cashier/settle.html'
  133. - name: '买单'
  134. menuId: 'pay'
  135. url: '/cashier/customer_accounts.html'
  136. workerMenu:
  137. - name: '房间管理'
  138. menuId: 'manage'
  139. url: '/worker/room_manage.html'
  140. mybatis-plus:
  141. mapper-locations: classpath*:/mapper/**/*.xml
  142. typeAliasesPackage: com.bofeng.**
  143. typeEnumsPackage: com.bofeng.**
  144. global-config:
  145. id-type: 2
  146. field-strategy: 2
  147. db-column-underline: true
  148. refresh-mapper: false
  149. configuration:
  150. map-underscore-to-camel-case: true
  151. cache-enabled: false