change method

This commit is contained in:
Looly 2021-01-24 21:02:20 +08:00
parent b6003aea30
commit 6ffa827365
3 changed files with 22 additions and 2 deletions

View File

@ -3,7 +3,7 @@
-------------------------------------------------------------------------------------------------------------
# 5.5.8 (2021-01-21)
# 5.5.8 (2021-01-22)
### 新特性
* 【extra 】 增加自动装配SpringUtil类pr#1366@Github
@ -12,6 +12,7 @@
* 【core 】 补充StrUtil.padXXX注释issue#I2E1S7@Gitee
* 【core 】 修改上传文件检查逻辑
* 【core 】 修正LocalDateTimeUtil.offset方法注释问题issue#I2EEXC@Gitee
* 【extra 】 VelocityEngine的getRowEngine改为getRawEngineissue#I2EGRG@Gitee
### Bug修复
* 【core 】 修复FileUtil.move以及PathUtil.copy等无法自动创建父目录的问题issue#I2CKTI@Gitee

View File

@ -68,8 +68,20 @@ public class VelocityEngine implements TemplateEngine {
*
* @return 原始引擎对象
* @since 4.3.0
* @deprecated 拼写错误了请使用{@link #getRawEngine()}
*/
@Deprecated
public org.apache.velocity.app.VelocityEngine getRowEngine() {
return getRawEngine();
}
/**
* 获取原始的引擎对象
*
* @return 原始引擎对象
* @since 5.5.8
*/
public org.apache.velocity.app.VelocityEngine getRawEngine() {
return this.engine;
}

View File

@ -295,7 +295,7 @@ public class HttpUtilTest {
String encodeResult = HttpUtil.normalizeParams("参数", CharsetUtil.CHARSET_UTF_8);
Assert.assertEquals("%E5%8F%82%E6%95%B0", encodeResult);
}
@Test
public void getMimeTypeTest() {
String mimeType = HttpUtil.getMimeType("aaa.aaa");
@ -318,4 +318,11 @@ public class HttpUtilTest {
final String s = HttpUtil.get(url);
Console.log(s);
}
@Test
public void tjhrTest(){
String url = "https://www.51tjhr.com";
final String s = HttpUtil.get(url);
Console.log(s);
}
}