记录bug希望帮助和我有一样问题的,哭了改了一上午
1.问题描述
今天上午在写项目时出现一个bug
该有的jar都有但是一直显示
Information:Internal caches are corrupted or have outdated format, forcing project rebuild:
java.io.FileNotFoundException:
/Users/yuanbao/IdeaProjects/StudentSystem/TrainTicketingSystem02/out/artifacts/TrainTicketingSystem02_war_expl
oded/WEB-INF/lib/spring-jdbc-5.1.10.RELEASE.jar (Is a directory)
改了一上午发现并没有什么用,于是静下心来思考,问题应该是WEB-INF\lib下的Jar包并没有添加到整个项目中。
2.问题解决
2.1打开Project Structure 左侧选中Modules,在Dependecies中,点击右侧“+”号,选择JARS or directories…选择WEB-INF\lib下的Jar包添加
2.2左侧选中Artifacts,然后点击-项目名:war exploded ,在Avaliable Elements中将刚刚添加的JAR包put into /WEB-LIF/lib
2.3重启tomcat
正常启动