今天在idea 使用maven 写jsp。 运行时报了这样的一个错误。
最初没洗看这些报错信息, 接着检查了程序,发现也没有问题。 于是就看报错的网页, 在最下面 我看到了 Apache Tomcat/6.0.29
我最初的想法是tomcat6.0的版本太低了 ,心里差不多有解决的方法了,换个高版本的tomact ,问题得到了解决。
方法一:在本地添加tomcat容器
不会配置就搜一下相关博客。
配置好之后 ,点击启动按钮即可。
方法二:修改pom.xml 使用tomcat7.0
``` <plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<port>5566</port>
</configuration>
</plugin>
这里我将端口改为了5566 是为了区别默认的8080端口 然后 运行命令 tomcat7:run