问题描述
Websphere 8.5.5是否与Spring 5兼容?在spring5(validation-api 5)中引用的Validation API导致MethodNotFound异常.
Is Websphere 8.5.5 compatible with Spring 5? The Validation API referenced in spring5 (validation-api 5) is resulting in MethodNotFound exception.. Any pointers/patch available to get this solved - short of upgrading to Websphere 9?
推荐答案
方法javax/validation/Configuration.getDefaultParameterNameProvider
已添加到Bean Validation 1.1中,因此表明您正在使用的Spring Validator尝试使用Bean Validation 1.1 API.根据 https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/validation/beanvalidation/LocalValidatorFactoryBean.html :
The method javax/validation/Configuration.getDefaultParameterNameProvider
was added in Bean Validation 1.1, so that indicates the Spring Validator you are using is attempting to use the Bean Validation 1.1 API. According to https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/validation/beanvalidation/LocalValidatorFactoryBean.html:
WebSphere 8.5.5提供Bean验证1.0,并且直到9.0版才添加对Bean验证1.1的支持.因此,您将需要使用Spring 4.x或WebSphere 9.x.
WebSphere 8.5.5 provides Bean Validation 1.0 and did not add support for Bean Validation 1.1 until version 9.0. So, you'll either need to use Spring 4.x or WebSphere 9.x.
这篇关于带有Spring-5的Websphere 8.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!