健壮性增强
This commit is contained in:
@@ -42,9 +42,9 @@ public class FastApplication extends SpringBootServletInitializer {
|
|||||||
if (StringUtils.isNoneBlank(vuePath, ctxPath)) {
|
if (StringUtils.isNoneBlank(vuePath, ctxPath)) {
|
||||||
logger.info(
|
logger.info(
|
||||||
"\r\n\r\n==============================================================\r\n"
|
"\r\n\r\n==============================================================\r\n"
|
||||||
+ "\r\n 存在此提示:因为您修改了 server.servlet.context-path 参数,需要您"
|
+ "\r\n 提示:您修改了 server.servlet.context-path 参数,需要您"
|
||||||
+ "\r\n 同步修改 jeesite-vue/.env.tomcat 中的 VITE_PUBLIC_PATH 并重新打包 "
|
+ "\r\n 同步修改 _app.config.js 中的 VITE_GLOB_API_URL_PREFIX 参数 "
|
||||||
+ "\r\n 如:context-path: " + ctxPath +" 即对应为 VITE_PUBLIC_PATH = " + ctxPath + vuePath
|
+ "\r\n 请修改为 VITE_GLOB_API_URL_PREFIX=\"" + ctxPath + "\""
|
||||||
+ "\r\n\r\n==============================================================\r\n");
|
+ "\r\n\r\n==============================================================\r\n");
|
||||||
}
|
}
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ server:
|
|||||||
servlet:
|
servlet:
|
||||||
context-path: ~
|
context-path: ~
|
||||||
register-default-servlet: false
|
register-default-servlet: false
|
||||||
|
# encoding.enabled: true
|
||||||
tomcat:
|
tomcat:
|
||||||
uri-encoding: UTF-8
|
uri-encoding: UTF-8
|
||||||
# 表单请求数据的最大大小
|
# 表单请求数据的最大大小
|
||||||
@@ -38,11 +39,11 @@ server:
|
|||||||
# # 线程数最大和最小个数
|
# # 线程数最大和最小个数
|
||||||
# threads:
|
# threads:
|
||||||
# max: 200
|
# max: 200
|
||||||
# min-spare: 10
|
# min-spare: 10
|
||||||
|
|
||||||
# 当 Nginx 为 https,tomcat 为 http 时,设置该选项为 true
|
# 当 Nginx 为 https,tomcat 为 http 时,设置该选项为 true
|
||||||
schemeHttps: false
|
schemeHttps: false
|
||||||
|
|
||||||
#======================================#
|
#======================================#
|
||||||
#========== Database sttings ==========#
|
#========== Database sttings ==========#
|
||||||
#======================================#
|
#======================================#
|
||||||
@@ -60,7 +61,7 @@ jdbc:
|
|||||||
|
|
||||||
# 连接信息加密
|
# 连接信息加密
|
||||||
encrypt:
|
encrypt:
|
||||||
|
|
||||||
# 加密连接用户名
|
# 加密连接用户名
|
||||||
username: false
|
username: false
|
||||||
# 加密连接密码
|
# 加密连接密码
|
||||||
@@ -68,7 +69,7 @@ jdbc:
|
|||||||
|
|
||||||
# 数据库连接池配置
|
# 数据库连接池配置
|
||||||
pool:
|
pool:
|
||||||
|
|
||||||
# 初始化连接数
|
# 初始化连接数
|
||||||
init: 1
|
init: 1
|
||||||
# 最小空闲连接数
|
# 最小空闲连接数
|
||||||
@@ -81,15 +82,15 @@ jdbc:
|
|||||||
#======================================#
|
#======================================#
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
|
|
||||||
# 应用程序名称
|
# 应用程序名称
|
||||||
application:
|
application:
|
||||||
name: jeesite-web-h2db
|
name: jeesite-web-h2db
|
||||||
|
|
||||||
# 环境名称(注意:不可设置为 test 它是单元测试专用的名称)
|
# 环境名称(注意:不可设置为 test 它是单元测试专用的名称)
|
||||||
profiles:
|
profiles:
|
||||||
active: default
|
active: default
|
||||||
|
|
||||||
# 打印横幅
|
# 打印横幅
|
||||||
main:
|
main:
|
||||||
bannerMode: "off"
|
bannerMode: "off"
|
||||||
@@ -98,7 +99,7 @@ spring:
|
|||||||
mvc:
|
mvc:
|
||||||
pathmatch:
|
pathmatch:
|
||||||
matching-strategy: ANT_PATH_MATCHER
|
matching-strategy: ANT_PATH_MATCHER
|
||||||
|
|
||||||
# 日志配置(fatal、error、warn、info、debug)
|
# 日志配置(fatal、error、warn、info、debug)
|
||||||
logging:
|
logging:
|
||||||
config: classpath:config/logback-spring.xml
|
config: classpath:config/logback-spring.xml
|
||||||
@@ -113,7 +114,7 @@ mybatis:
|
|||||||
mapper:
|
mapper:
|
||||||
refresh:
|
refresh:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
#======================================#
|
#======================================#
|
||||||
#========== System settings ===========#
|
#========== System settings ===========#
|
||||||
#======================================#
|
#======================================#
|
||||||
@@ -130,14 +131,14 @@ vuePath: /vue
|
|||||||
|
|
||||||
# 用户相关
|
# 用户相关
|
||||||
user:
|
user:
|
||||||
|
|
||||||
# 多租户模式(SAAS模式)(专业版)
|
# 多租户模式(SAAS模式)(专业版)
|
||||||
useCorpModel: false
|
useCorpModel: false
|
||||||
|
|
||||||
# 国际化管理(专业版)
|
# 国际化管理(专业版)
|
||||||
lang:
|
lang:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
# 任务调度(标准版)
|
# 任务调度(标准版)
|
||||||
job:
|
job:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -145,7 +146,7 @@ job:
|
|||||||
# 代码生成
|
# 代码生成
|
||||||
gen:
|
gen:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
# 系统监控
|
# 系统监控
|
||||||
state:
|
state:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -156,7 +157,7 @@ state:
|
|||||||
|
|
||||||
# Shiro 相关
|
# Shiro 相关
|
||||||
shiro:
|
shiro:
|
||||||
|
|
||||||
# defaultPath: ${shiro.loginUrl}
|
# defaultPath: ${shiro.loginUrl}
|
||||||
defaultPath: ${vuePath}/login
|
defaultPath: ${vuePath}/login
|
||||||
|
|
||||||
@@ -181,15 +182,15 @@ shiro:
|
|||||||
#secretKey: thinkgem,jeesite,com
|
#secretKey: thinkgem,jeesite,com
|
||||||
secretKey: Base64
|
secretKey: Base64
|
||||||
#secretKey: ~
|
#secretKey: ~
|
||||||
|
|
||||||
# 记住我密钥设置,你可以通过 com.jeesite.test.RememberMeKeyGen 类快速生成一个秘钥。
|
# 记住我密钥设置,你可以通过 com.jeesite.test.RememberMeKeyGen 类快速生成一个秘钥。
|
||||||
# 若不设置,则每次启动系统后自动生成一个新秘钥,这样会导致每次重启后,客户端记录的用户信息将失效。
|
# 若不设置,则每次启动系统后自动生成一个新秘钥,这样会导致每次重启后,客户端记录的用户信息将失效。
|
||||||
rememberMe:
|
rememberMe:
|
||||||
secretKey: ~
|
secretKey: ~
|
||||||
|
|
||||||
# 是否允许跨域访问 CORS,如果允许,设置允许的域名。v4.2.3 开始支持多个域名和模糊匹配,例如:http://*.jeesite.com,http://*.jeesite.net
|
# 是否允许跨域访问 CORS,如果允许,设置允许的域名。v4.2.3 开始支持多个域名和模糊匹配,例如:http://*.jeesite.com,http://*.jeesite.net
|
||||||
accessControlAllowOrigin: '*'
|
accessControlAllowOrigin: '*'
|
||||||
|
|
||||||
# 允许跨域访问时 CORS,可以获取和返回的方法和请求头
|
# 允许跨域访问时 CORS,可以获取和返回的方法和请求头
|
||||||
accessControlAllowMethods: GET, POST, OPTIONS
|
accessControlAllowMethods: GET, POST, OPTIONS
|
||||||
accessControlAllowHeaders: content-type, x-requested-with, x-ajax, x-token, x-remember
|
accessControlAllowHeaders: content-type, x-requested-with, x-ajax, x-token, x-remember
|
||||||
@@ -200,16 +201,16 @@ session:
|
|||||||
# 会话唯一标识SessionId在Cookie中的名称。
|
# 会话唯一标识SessionId在Cookie中的名称。
|
||||||
sessionIdCookieName: h2db.jeesite.session.id
|
sessionIdCookieName: h2db.jeesite.session.id
|
||||||
sessionIdCookiePath: ${server.servlet.context-path}
|
sessionIdCookiePath: ${server.servlet.context-path}
|
||||||
|
|
||||||
# Web 相关
|
# Web 相关
|
||||||
web:
|
web:
|
||||||
|
|
||||||
# 核心模块的Web功能开启(其它微服务时设为false)
|
# 核心模块的Web功能开启(其它微服务时设为false)
|
||||||
core:
|
core:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
# 在线API文档工具
|
# 在线API文档工具
|
||||||
swagger:
|
swagger:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
# 错误页面500.html是否输出错误信息(正式环境,为提供安全性可设置为false)
|
# 错误页面500.html是否输出错误信息(正式环境,为提供安全性可设置为false)
|
||||||
@@ -224,7 +225,7 @@ error:
|
|||||||
# 文件上传
|
# 文件上传
|
||||||
file:
|
file:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
#======================================#
|
#======================================#
|
||||||
#========== Message settings ==========#
|
#========== Message settings ==========#
|
||||||
#======================================#
|
#======================================#
|
||||||
@@ -232,7 +233,7 @@ file:
|
|||||||
# 消息提醒中心(专业版)
|
# 消息提醒中心(专业版)
|
||||||
msg:
|
msg:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
#======================================#
|
#======================================#
|
||||||
#========== Project settings ==========#
|
#========== Project settings ==========#
|
||||||
#======================================#
|
#======================================#
|
||||||
|
|||||||
2
web-fast/src/main/resources/vue/_app.config.js
Normal file
2
web-fast/src/main/resources/vue/_app.config.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
window.__PRODUCTION__JEESITE__CONF__={"VITE_GLOB_APP_TITLE":"JeeSite 快速开发平台","VITE_GLOB_APP_SHORT_NAME":"jeesite","VITE_GLOB_API_URL":"",
|
||||||
|
"VITE_GLOB_API_URL_PREFIX":"","VITE_GLOB_ADMIN_PATH":"/a","VITE_FILE_PREVIEW":"true"};Object.freeze(window.__PRODUCTION__JEESITE__CONF__);Object.defineProperty(window,"__PRODUCTION__JEESITE__CONF__",{configurable:false,writable:false,});var _hmt =_hmt ||[];(function(){var hm =document.createElement("script");hm.src ="https://hm.baidu.com/hm.js?65b88e88a94e0118de2962f328f17622";var s =document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s);})();
|
||||||
Reference in New Issue
Block a user