I have a Spring based webapp. I am using several repository classes with annotations @Repository, @Transactional in my Controllers. That part works fine.
I created a
No luck with LocalValidatorFactoryBean. I have done some hack to solve this problem.
@Component
public class ServiceUtils
{
private static ServiceUtils instance;
@Autowired
private ListableBeanFactory factory;
@PostConstruct
public void init()
{
instance = this;
}
public static ListableBeanFactory getFactory()
{
return instance.factory;
}
}