Home > Back-end >  Just learning Javaee, meet a problem, is there any bosses give advice or comments
Just learning Javaee, meet a problem, is there any bosses give advice or comments

Time:09-30



Exception:
Warning: the Exception encountered during the context initialization - cancelling refresh attempt: org. Springframework. Beans. Factory. UnsatisfiedDependencyException: Error creating bean with the name 'accountDao' : Unsatisfied dependency expressed through field 'jdbcTemplate'; Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'jdbcTemplate defined in the class path resource [the applicationcontext.xml] : always resolve a reference to the bean' dataSource 'while setting the bean property' dataSource '; Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'dataSource' defined in the class path resource [the applicationcontext.xml] : Error setting property values. Nested exception is org. Springframework. Beans. PropertyBatchUpdateException; Nested PropertyAccessExceptions are: (1)
1: PropertyAccessException org. Springframework. Beans. MethodInvocationException: Property 'driverClassName threw the exception. Nested exception is Java. Lang. An IllegalStateException: Could not load the JDBC driver class [. Com. Mysql. JDBC driver]
The Exception in the thread "main" org. Springframework. Beans. Factory. UnsatisfiedDependencyException: Error creating bean with the name 'accountDao' : Unsatisfied dependency expressed through the field 'jdbcTemplate'; Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'jdbcTemplate defined in the class path resource [the applicationcontext.xml] : always resolve a reference to the bean' dataSource 'while setting the bean property' dataSource '; Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'dataSource' defined in the class path resource [the applicationcontext.xml] : Error setting property values. Nested exception is org. Springframework. Beans. PropertyBatchUpdateException; Nested PropertyAccessExceptions are: (1)
1: PropertyAccessException org. Springframework. Beans. MethodInvocationException: Property 'driverClassName threw the exception. Nested exception is Java. Lang. An IllegalStateException: Could not load the JDBC driver class [. Com. Mysql. JDBC driver]
The at org. Springframework. Beans. Factory. The annotation. AutowiredAnnotationBeanPostProcessor $AutowiredFieldElement. Inject (AutowiredAnnotationBeanPostProcessor. Java: 596)
The at org. Springframework. Beans. Factory. The annotation. InjectionMetadata. Inject (InjectionMetadata. Java: 90)
The at org. Springframework. Beans. Factory. The annotation. AutowiredAnnotationBeanPostProcessor. PostProcessProperties (AutowiredAnnotationBeanPostProcessor. Java: 374)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. PopulateBean (AbstractAutowireCapableBeanFactory. Java: 1395)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. DoCreateBean (AbstractAutowireCapableBeanFactory. Java: 592)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. CreateBean (AbstractAutowireCapableBeanFactory. Java: 515)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. Lambda $doGetBean $0 (AbstractBeanFactory. Java: 320)
The at org. Springframework. Beans. Factory. Support. DefaultSingletonBeanRegistry. GetSingleton (DefaultSingletonBeanRegistry. Java: 222)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. DoGetBean (AbstractBeanFactory. Java: 318)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. GetBean (AbstractBeanFactory. Java: 199)
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. PreInstantiateSingletons (DefaultListableBeanFactory. Java: 849)
The at org. Springframework. Context. Support. AbstractApplicationContext. FinishBeanFactoryInitialization (AbstractApplicationContext. Java: 877)
The at org. Springframework. Context. Support. AbstractApplicationContext. Refresh (AbstractApplicationContext. Java: 549)
The at org. Springframework. Context. Support. ClassPathXmlApplicationContext. & lt; init> (ClassPathXmlApplicationContext. Java: 144)
The at org. Springframework. Context. Support. ClassPathXmlApplicationContext. & lt; init> (ClassPathXmlApplicationContext. Java: 85)
The at cn.edu.ujn.ch4.jdbc.JDBCTemplateTest.main (JDBCTemplateTest. Java: 10)
Under Caused by: org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'jdbcTemplate defined in the class path resource [the applicationcontext.xml] : always resolve a reference to the bean' dataSource 'while setting the bean property' dataSource '; Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'dataSource' defined in the class path resource [the applicationcontext.xml] : Error setting property values. Nested exception is org. Springframework. Beans. PropertyBatchUpdateException; nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related