第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

applicationcotext.xml配置錯了?

http://img1.sycdn.imooc.com//58e849ef000182c218320798.jpg

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.mchange.v2.c3p0.ComboPooledDataSource]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1155)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
?? ?at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
?? ?at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
?? ?at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
?? ?at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
?? ?at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
?? ?at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
?? ?at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4754)
?? ?at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5216)
?? ?at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
?? ?at java.util.concurrent.FutureTask.run(Unknown Source)
?? ?at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
?? ?at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
?? ?at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.mchange.v2.c3p0.ComboPooledDataSource]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector
?? ?at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:85)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1147)
?? ?... 22 more
Caused by: java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector
?? ?at java.lang.Class.getDeclaredConstructors0(Native Method)
?? ?at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
?? ?at java.lang.Class.getConstructor0(Unknown Source)
?? ?at java.lang.Class.getDeclaredConstructor(Unknown Source)
?? ?at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:80)
?? ?... 23 more
Caused by: java.lang.ClassNotFoundException: com.mchange.v2.ser.Indirector
?? ?at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
?? ?at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
?? ?... 28 more

http://img1.sycdn.imooc.com//58e84a580001886313330770.jpg

正在回答

2 回答

導入c3p0-0.9.2.1.jar和mchange-commons-java-0.2.3.4.jar

1 回復 有任何疑惑可以回復我~

看起來像是c3p0的包沒加 ?或者是一個叫做 common-pool這個包沒加

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

applicationcotext.xml配置錯了?

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號