Home > Back-end >  SpringBoots this display error is where there is a problem, just learn not to come out
SpringBoots this display error is where there is a problem, just learn not to come out

Time:04-08

Warning: the Exception encountered during the context initialization - cancelling refresh attempt: org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'key' defined in the class path resource [the applicationcontext.xml] : Instantiation of bean failed; Nested exception is org. Springframework. Beans. BeanInstantiationException: Failed to instantiate [cn.edu.qztc.software20.KeyBoard] : No default constructor found; Nested exception is Java. Lang. NoSuchMethodException: cn.edu.qztc.software20.KeyBoard. ()
The Exception in the thread "main" org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'key' defined in the class path resource [the applicationcontext.xml] : Instantiation of bean failed; Nested exception is org. Springframework. Beans. BeanInstantiationException: Failed to instantiate [cn.edu.qztc.software20.KeyBoard] : No default constructor found; Nested exception is Java. Lang. NoSuchMethodException: cn.edu.qztc.software20.KeyBoard. ()
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. InstantiateBean (AbstractAutowireCapableBeanFactory. Java: 1155)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. CreateBeanInstance (AbstractAutowireCapableBeanFactory. Java: 1099)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. DoCreateBean (AbstractAutowireCapableBeanFactory. Java: 513)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. CreateBean (AbstractAutowireCapableBeanFactory. Java: 483)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory $1. GetObject (AbstractBeanFactory. Java: 306)
The at org. Springframework. Beans. Factory. Support. DefaultSingletonBeanRegistry. GetSingleton (DefaultSingletonBeanRegistry. Java: 230)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. DoGetBean (AbstractBeanFactory. Java: 302)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. GetBean (AbstractBeanFactory. Java: 197)
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. PreInstantiateSingletons (DefaultListableBeanFactory. Java: 761)
The at org. Springframework. Context. Support. AbstractApplicationContext. FinishBeanFactoryInitialization (AbstractApplicationContext. Java: 866)
The at org. Springframework. Context. Support. AbstractApplicationContext. Refresh (AbstractApplicationContext. Java: 542)
The at org. Springframework. Context. Support. ClassPathXmlApplicationContext. & lt; init> (ClassPathXmlApplicationContext. Java: 139)
The at org. Springframework. Context. Support. ClassPathXmlApplicationContext. & lt; init> (ClassPathXmlApplicationContext. Java: 83)
The at cn.edu.qztc.software20.TestIOC.main (TestIOC. Java: 12)
Under Caused by: org. Springframework. Beans. BeanInstantiationException: Failed to instantiate [cn.edu.qztc.software20.KeyBoard] : No default constructor found; Nested exception is Java. Lang. NoSuchMethodException: cn.edu.qztc.software20.KeyBoard. ()
The at org. Springframework. Beans. Factory. Support. SimpleInstantiationStrategy. Instantiate (SimpleInstantiationStrategy. Java: 85)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. InstantiateBean (AbstractAutowireCapableBeanFactory. Java: 1147)
. 13 more
Under Caused by: Java. Lang. NoSuchMethodException: cn.edu.qztc.software20.KeyBoard. ()
The at Java. Lang. Class. GetConstructor0 (Unknown Source)
The at Java. Lang. Class. GetDeclaredConstructor (Unknown Source)
The at org. Springframework. Beans. Factory. Support. SimpleInstantiationStrategy. Instantiate (SimpleInstantiationStrategy. Java: 80)
. 14 more





  • Related