起因:
项目是从外部导入到eclipse中,添加Tomcat 7失败,别的项目没有问题。
Properties –> Server中显示如下
This project is not associated with any servers.
Properties –> Targeted Runtimes中显示如下
Tomcat 7不可用
选项卡Server右键 –> Add and Remove中显示如下
选中项目会提示错误
Tomcat version 7.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 and 6 Web modules
eclipse更改J2EE对应的Web版本
最新推荐文章于 2024-05-15 02:24:37 发布
![](https://img-home.csdnimg.cn/images/20240611030827.png)