spring mvc已经处理成让jsp运行,即:

<bean

    class="org.springframework.web.servlet.view.InternalResourceViewResolver">

    <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>

    <property name="prefix" value="/WEB-INF/view" />

    <property name="suffix" value=".jsp" />

</bean>

我在mac下的eclipse调试环境也是可以运行jsp文件的,但是布署到windows 服务器却运行不起来了。找到的主要原因是在web-inf/lib下放了servlet-api-3.0-alpha-1.jar 包,将其删除之后,服务器就可以运行jsp程序了。

相关文章:

  • 2022-12-23
  • 2021-05-15
  • 2022-01-09
  • 2022-12-23
  • 2021-04-08
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-03
  • 2021-10-16
  • 2022-12-23
  • 2022-01-14
  • 2022-01-18
  • 2022-12-23
相关资源
相似解决方案