|
|
@@ -1,7 +1,189 @@
|
|
|
+spring:
|
|
|
+ # ??????
|
|
|
+ profiles:
|
|
|
+ active: @profile.active@ # local # local | dev | prod
|
|
|
+ main:
|
|
|
+ banner-mode: off
|
|
|
+ lazy-initialization: true # ???Bean
|
|
|
+ jackson:
|
|
|
+ date-format: yyyy-MM-dd HH:mm:ss # ????????????????
|
|
|
+ time-zone: GMT+8 # ??????,??????,??+8??
|
|
|
+ servlet:
|
|
|
+ multipart:
|
|
|
+ max-file-size: 5GB # ????????
|
|
|
+ max-request-size: 5GB
|
|
|
+ messages:
|
|
|
+ basename: i18n/locale
|
|
|
+ encoding: UTF-8
|
|
|
+ mvc:
|
|
|
+ async:
|
|
|
+ request-timeout: 600000 # ????????? 60 ?
|
|
|
+ static-path-pattern: /uploads/**
|
|
|
+
|
|
|
+ # lettuce:
|
|
|
+ # pool:
|
|
|
+ # max-active: 20 # ?????????????????8
|
|
|
+ # max-wait: -1 # ???????????????????-1
|
|
|
+ # max-idle: 8 # ?????????8
|
|
|
+ # min-idle: 0 # ?????????0
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ web:
|
|
|
+ resources:
|
|
|
+ static-locations: classpath:/static/
|
|
|
+ # (false) ????????
|
|
|
+ add-mappings: true
|
|
|
+ # add-mappings: false
|
|
|
+
|
|
|
+ thymeleaf:
|
|
|
+ # ??????
|
|
|
+ enabled: true
|
|
|
+ #????
|
|
|
+ encoding: UTF-8
|
|
|
+ #????
|
|
|
+ prefix: classpath:/templates/
|
|
|
+ # ????
|
|
|
+ suffix: .html
|
|
|
+ #?????? ??????????
|
|
|
+ cache: false
|
|
|
+ # ??? HTML ??
|
|
|
+ mode: HTML
|
|
|
+ # ????
|
|
|
+ servlet:
|
|
|
+ content-type: text/html
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+# MyBatis ORM
|
|
|
+#mybatis:
|
|
|
+mybatis-plus:
|
|
|
+ configuration:
|
|
|
+ map-underscore-to-camel-case: false
|
|
|
+ # ???????sql??
|
|
|
+ # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
+ global-config:
|
|
|
+ banner: off
|
|
|
+ mapper-locations:
|
|
|
+ - classpath:com/example/mapper/*.xml
|
|
|
+ - classpath:mapper/**/*.xml
|
|
|
+
|
|
|
+# JVM
|
|
|
server:
|
|
|
- port: 8080
|
|
|
+ servlet:
|
|
|
+ context-path: /
|
|
|
+ encoding:
|
|
|
+ charset: UTF-8
|
|
|
+ # ?? Gzip ??
|
|
|
+ compression:
|
|
|
+ enabled: true
|
|
|
+ mime-types: text/html,text/xml,text/plain,text/css,application/javascript
|
|
|
+ tomcat:
|
|
|
+ # ?????????
|
|
|
+ relaxed-query-chars: "[,]"
|
|
|
+# threads:
|
|
|
+# max: 200
|
|
|
+
|
|
|
+# PageHelper????
|
|
|
+pagehelper:
|
|
|
+ helperDialect: mysql
|
|
|
+ supportMethodsArguments: true
|
|
|
+ params: count=countSql
|
|
|
+ page-size-zero: true
|
|
|
+
|
|
|
+# ??
|
|
|
+logging:
|
|
|
+ # config: classpath:log4j2.xml
|
|
|
+ level:
|
|
|
+ root: INFO # WARN
|
|
|
+ pattern:
|
|
|
+ console: "%d{yyyy-MM-dd-HH:mm:ss} [%thread] %highlight(%-5level) %logger- %msg%n"
|
|
|
+ file: "%d{yyyy-MM-dd-HH:mm} [%thread] %highlight(%-5level) %logger- %msg%n"
|
|
|
+ logback:
|
|
|
+ rollingpolicy:
|
|
|
+ max-history: 7
|
|
|
+# name: /Users/mure/MyProject/QuickLaunchSpring/DaoguCms/log/springLog.log
|
|
|
+
|
|
|
+# %d{HH:mm:ss.SSS}????????
|
|
|
+# %thread????????????Web???????????????
|
|
|
+# %-5level????????5????????
|
|
|
+# %logger-??????????
|
|
|
+# %msg??????
|
|
|
+# %n???????
|
|
|
+
|
|
|
+# ??/????? (JWT/OAuth2)
|
|
|
+# com/daogucms/config/Security/filter/JwtAuthenticationFilter.java
|
|
|
+# com/daogucms/config/Security/SecurityConfig.java
|
|
|
+whitelist:
|
|
|
+ static:
|
|
|
+ /,
|
|
|
+ /*.html,
|
|
|
+ /*.ico,
|
|
|
+ /images/**,
|
|
|
+ /uploads/**,
|
|
|
+ /swagger-ui/index.html,
|
|
|
+ /swagger-ui/**,
|
|
|
+ /docs/**,
|
|
|
+ /v3/**
|
|
|
+ jwt:
|
|
|
+ /api/webhook,
|
|
|
+ /api/public/**,
|
|
|
+ /api/v2/public/**,
|
|
|
+ /api/system/auth/**,
|
|
|
+ /api/v2/system/auth/**,
|
|
|
+ /api/b2c/member/auth/**,
|
|
|
+ /api/test/**,
|
|
|
+ /ws/**,
|
|
|
+ /wss/**
|
|
|
+
|
|
|
+
|
|
|
+## ?????? ##
|
|
|
+# HTTP EXCHANGE ????
|
|
|
+# HTTP_EXCHANGE_URI: https://jsonplaceholder.typicode.com
|
|
|
+
|
|
|
+# [??]
|
|
|
+DEFAULT_LANGUAGE: zh
|
|
|
+
|
|
|
+# [??]
|
|
|
+DEFAULT_TIME_ZONE: Asia/Shanghai
|
|
|
+
|
|
|
+# [??] ????? ???? 60 ?
|
|
|
+CAPTCHA_DURATION: 60000
|
|
|
+
|
|
|
+# [??] ?????? Token ???? (86400000?? = 1? = 24??) (?? login.is_remember ??7?)
|
|
|
+#TOKEN_DURATION_SYSTEM: 86400000
|
|
|
+# [??] ?????? Token ???? (604800000?? = 7?)
|
|
|
+TOKEN_DURATION_MEMBER: 604800000
|
|
|
+
|
|
|
+# [??] ????????????????? (??-1???)
|
|
|
+# (????????????????????)
|
|
|
+MAXIMUM_SESSIONS: -1
|
|
|
+
|
|
|
+##??? Actuator
|
|
|
+#management:
|
|
|
+# # ??????
|
|
|
+# endpoint:
|
|
|
+# # ?? shutdown ???????????? false
|
|
|
+# shutdown:
|
|
|
+# enabled: true
|
|
|
+# # ??????
|
|
|
+# health:
|
|
|
+# show-details: always
|
|
|
+# endpoints:
|
|
|
+# web:
|
|
|
+# # ????????
|
|
|
+# exposure:
|
|
|
+# include: "*"
|
|
|
+# # ?????? 2.0?????/; 2.0??????/actuator???????????
|
|
|
+# base-path: /api/system/actuator
|
|
|
|
|
|
-spring:
|
|
|
- application:
|
|
|
- name: test
|
|
|
|
|
|
+## ??????????????
|
|
|
+## (????? GlobalExceptionHandler ?? handleDuplicateKeyException ??)
|
|
|
+#fieldMappings:
|
|
|
+# username: ???????
|
|
|
+# nickname: ?????
|
|
|
+# role_name: ???????
|