diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000000000000000000000000000000000000..278a746b77f7b5ed6da030c46826a9a666c9e843 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,48 @@ + +server: + port: 8913 + compression: + enabled: true # 开启Gzip压缩,响应数据超过1kb时触发gzip自动压缩,以提高前端响应时间 + min-response-size: 1KB + servlet: + context-path: /demo + session: + timeout: PT30M #默认会话过期时间30分钟 + encoding: + enabled: true + charset: UTF-8 + force: true + tomcat: + uri-encoding: UTF-8 + +sys: + temp: +# path: /tmp + path: C:/Users/Administrator/Pictures + +logging: + file: + #最终的存储路径是: 系统用户目录/.应用名称/logs/端口号/spring.log + path: ${user.home}/.${spring.application.name}/logs/${server.port} + max-history: 7 + max-size: 10MB + pattern: + console: "%date %clr(%level) [${PID}] [%thread] [%magenta(%X{traceId})] %cyan(%logger{10}) [%file : %line] %msg%n" + file: "%date %level [${PID}] [%thread] [%X{traceId}] %logger{10} [%file : %line] %msg%n" + + +javamelody: + #是否启用 javamelody + enabled: true + init-parameters: + #是否打印控制台日志 + log: true + #web监控页访问账户密码 + authorized-users: admin:123456 + #url排除认证 + url-exclude-pattern: (/webjars/.*|/css/.*|/images/.*|/fonts/.*|/js/.*) + #web监控页访问地址 + monitoring-path: /jk +spring: + application: + name: csdockerdemo \ No newline at end of file