文件配置

This commit is contained in:
sgjj 2019-09-30 01:38:59 +08:00
parent b5ba1bf1d6
commit bcf4b05477
1 changed files with 69 additions and 57 deletions

View File

@ -1,58 +1,70 @@
server:
port: 8080
servlet.context-path: /ms-mcms
servlet.session.timeout: 60M
logging:
level:
net.mingsoft: trace
ms:
manager:
path: /ms
view-path: /WEB-INF/manager
upload:
path: /upload
mapping: /upload/**
denied: .exe,.jsp
spring:
profiles:
active: dev
mvc:
pathmatch:
use-suffix-pattern: true
devtools:
restart:
enabled: true
additional-paths: src/main/java
exclude: static/**,WEB-INF/**
servlet:
multipart:
max-request-size: 100MB
enabled: false
freemarker:
suffix: .ftl
charset: UTF-8
content-type: text/html
allow-request-override: true
allow-session-override: true
expose-request-attributes: true
expose-session-attributes: true
expose-spring-macro-helpers: true
prefer-file-system-access: false
template-loader-path: classpath:/WEB-INF/manager,classpath:/WEB-INF
settings:
template_update_delay: 1
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
number_format: 0.##
mybatis:
mapper-locations: classpath*:**/dao/*.xml
configuration:
server:
port: 8080
servlet.context-path: /ms-mcms
servlet.session.timeout: 60M
logging:
level:
net.mingsoft: trace
ms:
manager:
path: /ms
view-path: /WEB-INF/manager
upload:
path: /upload
mapping: /upload/**
denied: .exe,.jsp
multipart:
#最大上传文件大小 单位KB
max-file-size: 10240
#文件暂存临时目录
upload-temp-dir: temp
#临时文件大小
max-in-memory-size: 10240
#总上传最大大小 单位KB -1禁用
max-request-size: -1
spring:
profiles:
active: dev
mvc:
pathmatch:
use-suffix-pattern: true
devtools:
restart:
enabled: true
additional-paths: src/main/java
exclude: static/**,WEB-INF/**
servlet:
multipart:
max-request-size: 100MB
enabled: false
freemarker:
suffix: .ftl
charset: UTF-8
content-type: text/html
allow-request-override: true
allow-session-override: true
expose-request-attributes: true
expose-session-attributes: true
expose-spring-macro-helpers: true
prefer-file-system-access: false
template-loader-path: classpath:/WEB-INF/manager,classpath:/WEB-INF
settings:
template_update_delay: 1
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
number_format: 0.##
mybatis:
mapper-locations: classpath*:**/dao/*.xml
configuration:
database-id: mysql