Unsatisfied Dependency Exception in creating beans using Spring
I'm trying to use JPA for my spring application. I have integrated the JPATransactionManager & LocalEntityManagerFactoryBean into AppConfig class. Now, when I try to call one of the method which is in DaoImpl, the AppConfig is not able to Autowire the classes. Here is my code Test Class public class Test { public static void main(String[] args) { AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class); BbDao personService = context.getBean(BbDao.class); personService.getDealByDealId("0194541605021NJMAPFU"); context.close(); } } AppConfig @Configurat
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.