Hello There, I am new to this forum. It's great to be here.
Anyway. I was practicing Spring framework Annotation Configuration using XML. I have a repository, a service and a main app. There is an implementation of repository (named "customerRepository") and service (named "customerService") and the But the problem is when I ran the main app it shows "NoSuchBeanDefinitionException" exception. But I think I have done all the things right way and service and repository Autowired correctly. But it still not working. Please guide me if I am wrong at any point. I am using java 8, and app configured using maven.
Here is the error:
Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'customerService' available
Here is the code:
posted 3 years ago
Sorry, there was a typo and I couldn't find it at first. Anyway problem is solved.
The human mind is a dangerous plaything. This tiny ad is pretty safe: