mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
修复MVEL加载错误问题
This commit is contained in:
parent
47cba89085
commit
a74a8c7877
@ -27,6 +27,7 @@
|
||||
* 【core 】 修复脱敏银行卡号长度bug(pr#3210@Github)
|
||||
* 【jwt 】 修复JWTSignerUtil中ES256签名不符合规范问题(issue#3205@Github)
|
||||
* 【core 】 修复UserInfo获取country问题(issue#I7MCKW@Gitee)
|
||||
* 【extra 】 修复MVEL加载错误问题(issue#3214@Github)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
# 5.8.20(2023-06-16)
|
||||
|
@ -1,6 +1,5 @@
|
||||
package cn.hutool.core.math;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.util.NumberUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
|
||||
|
@ -18,10 +18,15 @@ public class MvelEngine implements ExpressionEngine {
|
||||
* 构造
|
||||
*/
|
||||
public MvelEngine(){
|
||||
checkEngineExist(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object eval(String expression, Map<String, Object> context) {
|
||||
return MVEL.eval(expression, context);
|
||||
}
|
||||
|
||||
private void checkEngineExist(MVEL mvel){
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user