Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在图块定义中添加 *.html 页面,但它显示运行时异常,此页面是静态的;但是当我将扩展名从 html 更改为 jsp 时,它工作正常。
添加以下代码
<servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.html</url-pattern> </servlet-mapping>
在 web.xml 中