jetty中运行jsp时:
报错:
No JSP support. Check that JSP jars are in lib/jsp and that the JSP option has been specified to start.jar
解决:
在pom.xml中加入jsp-2.1-glassfish
<dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-webapp</artifactId> <version>${jettyVersion}</version> </dependency> <dependency> <groupId>org.mortbay.jetty</groupId> <artifactId>jsp-2.1-glassfish</artifactId> <version>2.1.v20100127</version> </dependency>
时间: 2024-12-27 10:49:30