-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JsonViewSupportFactoryBean required a single bean, but 2 were found #43
Comments
I don't really have a good answer for this. Spring configurations can be complex, but the root cause is that you've defined a bean twice. Are you importing any other configurations that also define this bean class? |
I had the exact same problem, I'm trying to configure this on a spring boot project. |
Same answer. It's not really possible for me to debug this for you because Spring configurations can be complex. You've got two places in your code where this bean ( |
Hello , I am facing the same issue. Did somebody find a way to solve it? |
I've solved this issue by adding the following lines in my Application class:
By providing a new RequestMappingHandlerAdapter bean annotated as I'm relatively new to Spring so I don't know why my Application is able to select one of the two RequestMappingHandlerAdapter beans and the JsonViewSupportFactoryBean isn't and I also don't know whether this approach has some side effects. So far, everything works fine. |
Hi,
I have problems using this library as I'm getting message:
Description:
What should I do in order to fix this?
Thanks
The text was updated successfully, but these errors were encountered: