配置更新

master
ms-dev 7 years ago
parent 4633c2be68
commit c611cff678
  1. 128
      src/main/resources/application.yml

@ -1,70 +1,60 @@
#服务配置 server:
server: port: 8080
#端口 servlet.context-path: /ms-mcms
port: 8080
#项目名称 logging:
servlet.context-path: /ms-mcms level:
net.mingsoft: trace
# slf4j日志配置 ms:
logging: manager:
# 配置级别 path: /ms
level: view-path: /WEB-INF/manager
#分包配置级别,即不同的目录下可以使用不同的级别 session:
net.mingsoft: trace timeout: 1800000
#铭飞配置 validation-interval: 120000
ms:
manager: upload:
path: /ms path: /upload
view-path: /WEB-INF/manager denied: exe
#session配置 allowed: jpg
session: max-size: 1
timeout: 1800000 #会话超时, 单位:毫秒, 20m=1200000ms, 30m=1800000ms, 60m=3600000ms memory-size: 4096
validation-interval: 120000 #会话清理间隔时间, 单位:毫秒,2m=120000ms
spring:
#上传配置 profiles:
upload: active: dev
path: /upload mvc:
denied: exe pathmatch:
allowed: jpg use-suffix-pattern: true
max-size: 1 devtools:
memory-size: 4096 restart:
enabled: true
#spring配置 additional-paths: src/main/java
spring: exclude: static/**,WEB-INF/**
profiles: servlet:
active: dev multipart:
mvc: max-request-size: 100MB
pathmatch: freemarker:
use-suffix-pattern: true suffix: .ftl
devtools: charset: UTF-8
restart: content-type: text/html
enabled: true allow-request-override: true
additional-paths: src/main/java allow-session-override: true
exclude: static/**,WEB-INF/** expose-request-attributes: true
servlet: expose-session-attributes: true
multipart: expose-spring-macro-helpers: true
max-request-size: 100MB prefer-file-system-access: false
freemarker: template-loader-path: classpath:/WEB-INF/manager
suffix: .ftl settings:
charset: UTF-8 template_update_delay: 1
content-type: text/html default_encoding: UTF-8
allow-request-override: true classic_compatible: true
allow-session-override: true date_format: yyyy-MM-dd
expose-request-attributes: true time_format: HH:mm:ss
expose-session-attributes: true datetime_format: yyyy-MM-dd HH:mm:ss
expose-spring-macro-helpers: true auto_import: /include/macro.ftl as ms
prefer-file-system-access: false
template-loader-path: classpath:/WEB-INF/manager mybatis:
settings: mapper-locations: classpath*:**/dao/*.xml
template_update_delay: 1 configuration:
default_encoding: UTF-8
classic_compatible: true
date_format: yyyy-MM-dd
time_format: HH:mm:ss
datetime_format: yyyy-MM-dd HH:mm:ss
auto_import: /include/macro.ftl as ms
mybatis:
mapper-locations: classpath*:**/dao/*.xml
configuration:
database-id: mysql database-id: mysql
Loading…
Cancel
Save