Hibernate validation error - @Size

后端 未结 2 1923
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-22 10:29

I have User entity and I try validate field password for length in my test.

My User Class:



        
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-22 11:15

    I am surprised that any of the tests would work. Your exception indicates that you have the wrong version of the Unified Expressions Language dependencies on your classpath. See also https://github.com/hibernate/hibernate-validator and http://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#validator-gettingstarted-uel

    I guess the question becomes in which environment you are running and which EL dependencies (if any) you are using.

提交回复
热议问题