master
wangbing 6 years ago
parent fd2e06076b
commit 911bf348b8

@ -4,6 +4,8 @@ server.servlet.context-path=/
spring.mvc.static-path-pattern=/static/**
spring.resources.static-locations=classpath:static/
spring.application.name=${projectName}
spring.main.banner-mode=on
spring.devtools.restart.enabled=true
<#if cloud>
eureka.client.serviceUrl.defaultZone=http://localhost:18080/eureka/
</#if>
@ -13,17 +15,15 @@ spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
server.tomcat.uri-encoding=UTF-8
# 根路径、欢迎页
web.welcome.page = /login.htm
web.welcome.page=/index.htm
# 需要验证授权, 既访问时组装Token
web.url.auth.included = /**
web.url.auth.included=/**
# 不需要验证授权, 或该请求有自己的验证机制
web.url.auth.excluded = /favicon.ico,/static/**,/api,/login.htm
web.url.auth.excluded=/favicon.ico,/static/**,/api,/login.htm
# 日志配置
logging.path=D://
logging.levels=DEBUG
logging.config=classpath:logback-config.xml
# 热部署生效
spring.devtools.restart.enabled = true
<#if dataBase == 'ORACLE'>
# oracle
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
@ -70,6 +70,6 @@ spring.freemarker.settings.classic_compatible=true
spring.freemarker.settings.whitespace_stripping=true
spring.freemarker.settings.url_escaping_charset=utf-8
# 文件上传配置
spring.servlet.multipart.resolveLazily = true
spring.servlet.multipart.resolveLazily=true
spring.servlet.multipart.max-file-size=100MB
spring.servlet.multipart.max-request-size=100MB

@ -5,6 +5,7 @@ spring.mvc.static-path-pattern=/static/**
spring.resources.static-locations=classpath:static/
spring.application.name=${projectName}
spring.main.banner-mode=off
spring.devtools.restart.enabled=false
<#if cloud>
eureka.client.serviceUrl.defaultZone=http://localhost:18080/eureka/
</#if>
@ -14,15 +15,15 @@ spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
server.tomcat.uri-encoding=UTF-8
# 根路径、欢迎页
web.welcome.page = /index.htm
web.welcome.page=/index.htm
# 需要验证授权, 既访问时组装Token
web.url.auth.included = /**
web.url.auth.included=/**
# 不需要验证授权, 或该请求有自己的验证机制
web.url.auth.excluded = /favicon.ico,/static/**,/api,/login.htm
web.url.auth.excluded=/favicon.ico,/static/**,/api,/login.htm
# 日志配置
logging.path = /root/
logging.path=/root/
logging.levels=INFO
logging.config = classpath:logback-config.xml
logging.config=classpath:logback-config.xml
<#if dataBase == 'ORACLE'>
# oracle
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
@ -33,7 +34,7 @@ spring.datasource.password=123456
<#if dataBase == 'MYSQL'>
# mysql
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf-8
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf-8&useSSL=false
spring.datasource.username=test
spring.datasource.password=123456
</#if>
@ -69,6 +70,6 @@ spring.freemarker.settings.classic_compatible=true
spring.freemarker.settings.whitespace_stripping=true
spring.freemarker.settings.url_escaping_charset=utf-8
# 文件上传配置
spring.servlet.multipart.resolveLazily = true
spring.servlet.multipart.resolveLazily=true
spring.servlet.multipart.max-file-size=100MB
spring.servlet.multipart.max-request-size=100MB
Loading…
Cancel
Save

Powered by TurnKey Linux.