org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private jdbc.transaction.BookShopDao jdbc.transaction.BookService.bookShopDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookShopDao' defined in file [F:\workspace\spring-1\bin\jdbc\transaction\BookShopDaoImp.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'dataSource' or 'jdbcTemplate' is required
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private jdbc.transaction.BookShopDao jdbc.transaction.BookService.bookShopDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookShopDao' defined in file [F:\workspace\spring-1\bin\jdbc\transaction\BookShopDaoImp.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'dataSource' or 'jdbcTemplate' is required
ç'ä¸åï¼ææä¸ä¸ªæ æçsetteræ¹æ³ã
1ãsetteræ¹æ³çåæ°ç±»åä¸å¹é çgetterçè¿åç±»å导è´ã
2ã为éè¦ä»£ççç®æ ç±»æ½åºæ¥å£ã追é®
æç¨åºä¸æ²¡æsetteræ¹æ³ é½æ¯ç¨@autowiredèªå¨æ³¨å
¥ç
请é®æ¨è½å讲ç»ä¸ç¹ä¹ å°åºæ¯åªéçé误