1
在Spring 3.0中,ApplicationContext
在创建bean和执行依赖注入时执行其他验证。在创建Bean时,是否可以让ApplicationContext使用Validators?
有可能让它使用bean validator
或者我应该让它回调调用此验证程序的方法@PostConstruct
?
更新
这个验证将比ApplicationContext
执行更深入的验证。
在Spring 3.0中,ApplicationContext
在创建bean和执行依赖注入时执行其他验证。在创建Bean时,是否可以让ApplicationContext使用Validators?
有可能让它使用bean validator
或者我应该让它回调调用此验证程序的方法@PostConstruct
?
更新
这个验证将比ApplicationContext
执行更深入的验证。
你想验证什么?根据您的需求BeanFactoryPostProcessor可能适合。