Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

HEY ITS GIVING THIS ERROR: INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@75412c2f: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy Exception in thread “main” org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.nucleus.Repository.EmployeeRepo] is defined: expected single bean but found 0: at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:271) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1101) at com.nucleus.Repository.Main.main(Main.java:15)
- Aashima
Exception in thread “main” org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.journaldev.repository.EmployeeRepository’ available at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:351) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:342) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1126) at com.journaldev.SpringMainClass.main(SpringMainClass.java:18)
- Neelove Basu
Hey, “Spring @Repository annotation is used to indicate that the class provides the mechanism for storage, …” I don’t really understand if use of @Repository annotation is really needed here. You didn’t use any other annotatations so is indication of a storage really needed for proper work of this example? I have seen in your next tutorial ( https://www.journaldev.com/17034/spring-data-jpa ) that you didn’t use @Repository. Can you explain me that? Thanks in advance
- Peter
You can take off the annotation @Repository and thing should work. This sample has nothing to do with @Repository. Wasting my 10 min to read your code
- Gordon Ko