From c611cff678192d3de623108aeaff7c0a24d9bb30 Mon Sep 17 00:00:00 2001 From: ms-dev Date: Thu, 17 Jan 2019 11:57:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 128 +++++++++++++---------------- 1 file changed, 59 insertions(+), 69 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index a6591265..3ff3d837 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,70 +1,60 @@ -#服务配置 -server: - #端口 - port: 8080 - #项目名称 - servlet.context-path: /ms-mcms - -# slf4j日志配置 -logging: - # 配置级别 - level: - #分包配置级别,即不同的目录下可以使用不同的级别 - net.mingsoft: trace -#铭飞配置 -ms: - manager: - path: /ms - view-path: /WEB-INF/manager - #session配置 - session: - timeout: 1800000 #会话超时, 单位:毫秒, 20m=1200000ms, 30m=1800000ms, 60m=3600000ms - validation-interval: 120000 #会话清理间隔时间, 单位:毫秒,2m=120000ms - - #上传配置 - upload: - path: /upload - denied: exe - allowed: jpg - max-size: 1 - memory-size: 4096 - -#spring配置 -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 - 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 - 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 - -mybatis: - mapper-locations: classpath*:**/dao/*.xml - configuration: +server: + port: 8080 + servlet.context-path: /ms-mcms + +logging: + level: + net.mingsoft: trace +ms: + manager: + path: /ms + view-path: /WEB-INF/manager + session: + timeout: 1800000 + validation-interval: 120000 + + upload: + path: /upload + denied: exe + allowed: jpg + max-size: 1 + memory-size: 4096 + +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 + 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 + 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 + +mybatis: + mapper-locations: classpath*:**/dao/*.xml + configuration: database-id: mysql \ No newline at end of file