mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复MVEL加载错误问题
This commit is contained in:
@@ -14,11 +14,14 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
public class MvelEngine implements ExpressionEngine {
|
public class MvelEngine implements ExpressionEngine {
|
||||||
|
|
||||||
|
static {
|
||||||
|
checkEngineExist(MVEL.class);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 构造
|
* 构造
|
||||||
*/
|
*/
|
||||||
public MvelEngine(){
|
public MvelEngine(){
|
||||||
checkEngineExist(null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -26,7 +29,7 @@ public class MvelEngine implements ExpressionEngine {
|
|||||||
return MVEL.eval(expression, context);
|
return MVEL.eval(expression, context);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkEngineExist(MVEL mvel){
|
private static void checkEngineExist(Class<?> clazz){
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user