No beans of 'Validator' type found。这里有类似的问题,但没有关于Validator的问题。我试着通过构造函数自动生成它,但它仍然是一样的。目前spring-boot-starter-xxx-xxx的最新版本是1.4.1.RELEASE。("beforeSave", validator);}我把我的代码改成这样,它就起作用了。谢谢你
我正在使用JDK1.7,intelliJ社区13,我正在编写一个spring JUnit测试:@ContextConfiguration() throws Exception {
} <?: No qualifying bean of type [javax.validation.Validator] found for dependency: expected at least 1 <em