(version:velocity-1.7,共用-集合-3.2)
我使用速度解析vm模板,并在request范围内设置值,在jsp中显示。
我的应用程序work normaly a period of time,但当用户访问一段时间后,jsp显示错误,无法访问
这里是log
Mar 8, 2013 11:40:54 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet spring threw exception
java.lang.NullPointerExc
如何从jsp包含引用一个jsp的链接内容?
index.jsp
<%@ include file="link.jsp"%>
<html>
//can I get the link.jsp link from here with this include?
</html>
link.jsp
<html>
<a href"someplace"></a> <--I want this to be a reference to other jsps
</html&
我希望提供静态内容,比如host:8080/从/static文件夹返回index.html和其他html文件,同时允许来自静态signup.html页面的POST生成呈现的.jsp视图。
SpringBoot使用默认的ResourceResolver为我的静态资源提供开箱即用的服务,但是重定向和转发到我的.jsp资源会导致未呈现的JSP。
这是MVC配置
@Configuration
@EnableWebMvc
public class MvcConfig implements WebMvcConfigurer{
@Override
public void addResour