maven项目update project时报“Cannot nest 'xx/src/main/resources' inside 'xx/main/resources”
今天更新项目后,项目启不来了,记一下解决问题的办法:
1、maven项目update project时报“Cannot nest 'xx/src/main/resources' inside 'xx/main/resources”
解决办法:
1)右键工程选择-》Build Path-》Configure Build Path,弹出对话框,选择Libraries下的Web App Libraries,然后remove,点击保存。
2)重新把Web App Libraries 添加回来。
2、tomcat启动报错:H:/apache-tomcat-8.0.45/bin/bootstrap.jar which is referenced by the classpath, does not exist.
问题分析:因为重新添加了tomcat,路径变了,而eclipse中对于tomcat的配置没有变
解决办法:
1)点击运行配置项 run configuration
2)选择classPath,删除原tomcat路径下的”bootstrap.jar”和”tomcat-juli.jar”