How to inject Hibernate validator bean in Controller while unit testing?

前端 未结 0 1976
不思量自难忘°
不思量自难忘° 2021-01-28 04:28

I have controller with field Validator(hibernate-validator)

public class AuthorController {

@Autowired
private Validator validator

}


@Bean
public Validator va         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题