|
|
@ -5,6 +5,7 @@ spring.mvc.static-path-pattern=/static/**
|
|
|
|
spring.resources.static-locations=classpath:static/
|
|
|
|
spring.resources.static-locations=classpath:static/
|
|
|
|
spring.application.name=${projectName}
|
|
|
|
spring.application.name=${projectName}
|
|
|
|
spring.main.banner-mode=off
|
|
|
|
spring.main.banner-mode=off
|
|
|
|
|
|
|
|
spring.devtools.restart.enabled=false
|
|
|
|
<#if cloud>
|
|
|
|
<#if cloud>
|
|
|
|
eureka.client.serviceUrl.defaultZone=http://localhost:18080/eureka/
|
|
|
|
eureka.client.serviceUrl.defaultZone=http://localhost:18080/eureka/
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
@ -14,15 +15,15 @@ spring.http.encoding.charset=UTF-8
|
|
|
|
spring.http.encoding.enabled=true
|
|
|
|
spring.http.encoding.enabled=true
|
|
|
|
server.tomcat.uri-encoding=UTF-8
|
|
|
|
server.tomcat.uri-encoding=UTF-8
|
|
|
|
# 根路径、欢迎页
|
|
|
|
# 根路径、欢迎页
|
|
|
|
web.welcome.page = /index.htm
|
|
|
|
web.welcome.page=/index.htm
|
|
|
|
# 需要验证授权, 既访问时组装Token
|
|
|
|
# 需要验证授权, 既访问时组装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.levels=INFO
|
|
|
|
logging.config = classpath:logback-config.xml
|
|
|
|
logging.config=classpath:logback-config.xml
|
|
|
|
<#if dataBase == 'ORACLE'>
|
|
|
|
<#if dataBase == 'ORACLE'>
|
|
|
|
# oracle
|
|
|
|
# oracle
|
|
|
|
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
|
|
|
|
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
|
|
|
@ -33,7 +34,7 @@ spring.datasource.password=123456
|
|
|
|
<#if dataBase == 'MYSQL'>
|
|
|
|
<#if dataBase == 'MYSQL'>
|
|
|
|
# mysql
|
|
|
|
# mysql
|
|
|
|
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
|
|
|
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.username=test
|
|
|
|
spring.datasource.password=123456
|
|
|
|
spring.datasource.password=123456
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
@ -69,6 +70,6 @@ spring.freemarker.settings.classic_compatible=true
|
|
|
|
spring.freemarker.settings.whitespace_stripping=true
|
|
|
|
spring.freemarker.settings.whitespace_stripping=true
|
|
|
|
spring.freemarker.settings.url_escaping_charset=utf-8
|
|
|
|
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-file-size=100MB
|
|
|
|
spring.servlet.multipart.max-request-size=100MB
|
|
|
|
spring.servlet.multipart.max-request-size=100MB
|