标签: java bean-validation
答案 0 :(得分:4)
具有静态方法的类的类名必须是完全限定的。
ScriptAssert(script="com.example.demo.ComplexValidation.isComplexSubValid(_this.attributeA,_this.attributeB)", lang = "javascript")
public static boolean isComplexSubValid(Object a,Object b)...