Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot create proxy for spring component without default constructor #232
I receive an error when trying to obtain a bean which class doesn't have a default constructor (has its constructor arguments autowired) from ApplicationContext:
pushed a commit
May 7, 2018
Proxy of a class without default constructor is supported from Spring4:
For more explanation see http://blog.codeleak.pl/2014/07/spring-4-cglib-based-proxy-classes-with-no-default-ctor.html.
I have replicated Spring solution with Objenesis library.