This error message means that Spring is trying to autowire a bean of type 'java.lang.String' but cannot find any beans of that type in the application context. The annotations for the dependency have been included, meaning that the class with the dependency has either @Autowired or @Inject annotation, but Spring could not find any appropriate bean to satisfy the dependency.
To fix this error, you can either create a bean of type 'java.lang.String' or change the dependency to a bean that already exists in the application context. Another possible solution is to use the @Qualifier annotation to specify the name of the bean that should be autowired.
Asked: 2021-06-19 11:00:00 +0000
Seen: 8 times
Last updated: May 12 '21