摘要: 1 2 "request.getContextPath()的值是 "<%=request.getContextPath()%><br/> "pageContext.request.contextPath的值是 "${pageContext.request.contextPath}<br/> 通过运行 阅读全文
posted @ 2020-08-18 17:21 Curedfisher 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 如图错误: 引入js/css后,控制台出现的错误! 我的错误则是因为在静态文件夹下的原因. 解决:如果要放在webRoot下的静态(static)文件夹下,需要在springMvc的配置文件中添加上注解(<mvc:default-servlet-handler/>)和(<context:annota 阅读全文
posted @ 2020-08-18 15:11 Curedfisher 阅读(2971) 评论(0) 推荐(0) 编辑
摘要: 当你的web项目下出现这个这些鬼东西的时候,是视图的原因 1、右上角切换视图到java,看看问题解决了没,如果没有,第二步 2、window-》perspective-》reset perspective 阅读全文
posted @ 2020-08-18 14:59 Curedfisher 阅读(563) 评论(0) 推荐(0) 编辑
摘要: 错误提示是因为没有引入javax.servlet.http.HttpServletRequest所在的包,编译错误。 项目–>右键–>properties–>Java build bath–>Libraries这里要保有这两个包。如果你的没有,那么:add Library–>user Library 阅读全文
posted @ 2020-08-18 08:50 Curedfisher 阅读(3924) 评论(0) 推荐(0) 编辑