老师,为什么我导入源码报错误。。。

老师,为什么我导入源码报错误。。。

[2020-08-18 07:54:26,532] Artifact icake:war exploded: Error during artifact deployment. See server log for details.

18-Aug-2020 19:54:30.948 淇℃伅 [Abandoned connection cleanup thread] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading 闈炴硶璁块棶锛氭Web搴旂敤绋嬪簭瀹炰緥宸插仠姝€�傛棤娉曞姞杞絒]銆備负浜嗚皟璇曚互鍙婄粓姝㈠鑷撮潪娉曡闂殑绾跨▼锛屽皢鎶涘嚭浠ヤ笅鍫嗘爤璺熻釜銆�

java.lang.IllegalStateException: 闈炴硶璁块棶锛氭Web搴旂敤绋嬪簭瀹炰緥宸插仠姝€�傛棤娉曞姞杞絒]銆備负浜嗚皟璇曚互鍙婄粓姝㈠鑷撮潪娉曡闂殑绾跨▼锛屽皢鎶涘嚭浠ヤ笅鍫嗘爤璺熻釜銆�

at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1378)

at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1030)

at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)

at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

at java.base/java.lang.Thread.run(Thread.java:844)

18-Aug-2020 19:54:34.666 淇℃伅 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 鎶妛eb 搴旂敤绋嬪簭閮ㄧ讲鍒扮洰褰� [D:\Program Files (x86)\apache-tomcat-8.5.53-windows-x64\apache-tomcat-8.5.53\webapps\manager]

18-Aug-2020 19:54:34.773 淇℃伅 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Program Files (x86)\apache-tomcat-8.5.53-windows-x64\apache-tomcat-8.5.53\webapps\manager] has finished in [107] ms

http://img1.sycdn.imooc.com//climg/5f3bc1fa091b419405600882.jpg

http://img1.sycdn.imooc.com//climg/5f3bc2020953a4a818040497.jpg


正在回答

登陆购买课程后可参与讨论,去登陆

1回答

同学你好,同学导入源码错误,应该导入icake,而不是MyBatis案例源码,如:

http://img1.sycdn.imooc.com//climg/5f3c881e0985d4b004130206.jpg

导入源码后,如下图所示:

http://img1.sycdn.imooc.com//climg/5f3c8a170907b90415180631.jpg

找到mybatis.xml文件,根据自己安装的MySQL进行修改,例如MySQL的版本,用户名和密码等。

然后修改tomcat,启动项目再试试。

祝:学习愉快~

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师