替换过期的key

This commit is contained in:
Looly 2022-08-30 11:26:23 +08:00
parent c538014042
commit 7ddcc117fd
2 changed files with 6 additions and 5 deletions

View File

@ -3,7 +3,7 @@
------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------
# 5.8.6.M1 (2022-08-29) # 5.8.6.M1 (2022-08-30)
### 🐣新特性 ### 🐣新特性
* 【core 】 CollUtil新增addIfAbsent方法pr#750@Gitee * 【core 】 CollUtil新增addIfAbsent方法pr#750@Gitee
@ -17,6 +17,7 @@
* 【core 】 NumberUtil.roundStr() 修改为使用toPlainStringpr#775@Gitee * 【core 】 NumberUtil.roundStr() 修改为使用toPlainStringpr#775@Gitee
* 【extra 】 QrCodeUtil新增SVG格式、Ascii Art字符画格式pr#763@Gitee * 【extra 】 QrCodeUtil新增SVG格式、Ascii Art字符画格式pr#763@Gitee
* 【jwt 】 JWTUtil的parseToken增加空值异常抛出issue#I5OCQB@Gitee * 【jwt 】 JWTUtil的parseToken增加空值异常抛出issue#I5OCQB@Gitee
* 【extra 】 resource.loader等过期参数替换issue#2571@Github
* *
### 🐞Bug修复 ### 🐞Bug修复
* 【http 】 修复https下可能的Patch、Get请求失效问题issue#I3Z3DH@Gitee * 【http 】 修复https下可能的Patch、Get请求失效问题issue#I3Z3DH@Gitee

View File

@ -8,7 +8,7 @@ import org.apache.velocity.app.Velocity;
/** /**
* Velocity模板引擎<br> * Velocity模板引擎<br>
* http://velocity.apache.org/ * <a href="http://velocity.apache.org/">http://velocity.apache.org/</a>
* *
* @author looly * @author looly
*/ */
@ -132,13 +132,13 @@ public class VelocityEngine implements TemplateEngine {
} }
break; break;
case WEB_ROOT: case WEB_ROOT:
ve.setProperty(Velocity.RESOURCE_LOADER, "webapp"); ve.setProperty(Velocity.RESOURCE_LOADERS, "webapp");
ve.setProperty("webapp.resource.loader.class", "org.apache.velocity.tools.view.servlet.WebappLoader"); ve.setProperty("webapp.resource.loader.class", "org.apache.velocity.tools.view.servlet.WebappLoader");
ve.setProperty("webapp.resource.loader.path", StrUtil.nullToDefault(config.getPath(), StrUtil.SLASH)); ve.setProperty("webapp.resource.loader.path", StrUtil.nullToDefault(config.getPath(), StrUtil.SLASH));
break; break;
case STRING: case STRING:
ve.setProperty(Velocity.RESOURCE_LOADER, "str"); ve.setProperty(Velocity.RESOURCE_LOADERS, "str");
ve.setProperty("str.resource.loader.class", SimpleStringResourceLoader.class.getName()); ve.setProperty("resource.loader.str.class", SimpleStringResourceLoader.class.getName());
break; break;
default: default:
break; break;