Jfinal Intellij idea main方法启动No JSP support. Check that JSP jars are in lib/jsp and that the JSP option has been specified to

发布时间:2019-05-06作者:laosun阅读(98)

Jfinal

Jfinal 项目在 Intellij idea 使用main方法启动后,访问jsp出现下边这个异常:No JSP support. Check that JSP jars are in lib/jsp and that the JSP option has been specified to

    只需要将以下maven配置中的scope修改下即可

    原来是这样的

    <!-- 添加jetty对jsp的支持 end -->
    <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-jsp</artifactId>
        <version>9.2.19.v20160908</version>
        <scope>provided</scope>
    </dependency>

    修改成如下:

    <!-- 添加jetty对jsp的支持 end -->
    <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-jsp</artifactId>
        <version>9.2.19.v20160908</version>
        <scope>compile</scope>
    </dependency>

    以下是jfinal作者回复的信息

    image.png


1 +1

 Java  源码  jfinal

 请文明留言

0 条评论