上一页 1 ··· 110 111 112 113 114 115 116 117 118 ··· 347 下一页
摘要: PageHelper 中文乱码 在springmvc 的 mvc:annotation-driven 中配置编码 <mvc:annotation-driven /> 会自动注册DefaultAnnotationHandlerMapping与AnnotationMethodHandlerAdapter 阅读全文
posted @ 2021-12-25 22:52 emanlee 阅读(232) 评论(0) 推荐(0)
摘要: Taglib指令,其实就是定义一个标签库以及自定义标签的前缀。 这样在界面jsp中引入其中的标签库或者标签库文件,然后才可以正常使用其中定义的标签。 <%@ taglib prefix ="bean" uri= "http://struts.apache.org/tags-bean" %> <%@ 阅读全文
posted @ 2021-12-25 21:14 emanlee 阅读(124) 评论(0) 推荐(0)
摘要: 使用ModelAndView类用来存储处理完后的结果数据,以及显示该数据的视图。从名字上看ModelAndView中的Model代表模型,View代表视图,这个名字就很好地解释了该类的作用。 业务处理器调用模型层处理完用户请求后,把结果数据存储在该类的model属性中,把要返回的视图信息存储在该类的 阅读全文
posted @ 2021-12-25 20:53 emanlee 阅读(1196) 评论(0) 推荐(1)
摘要: IDEA, SSM: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. project -> c 阅读全文
posted @ 2021-12-25 19:52 emanlee 阅读(221) 评论(0) 推荐(0)
摘要: SSM三大框架的运行流程、加载顺序 web项目启动的加载顺序:以Tomcat举例,启动Tomcat之后,首先会加载web.xml文件:a)容器首先读取web.xml中的<context-param>的配置内容和<listener>标签中配置项;b)紧接着实例化ServletContext对象,并将< 阅读全文
posted @ 2021-12-25 17:52 emanlee 阅读(739) 评论(0) 推荐(0)
摘要: ${pageContext.request.contextPath} 是通过 get方法去取的,先 pageContext.getRequest() 得到 HttpServletRequest 对象,再调用 HttpServletRequest 的 getContextPath方法 作用是取出部署的 阅读全文
posted @ 2021-12-24 19:59 emanlee 阅读(473) 评论(0) 推荐(0)
摘要: java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] was found. <dependency> <groupId>org.springframework</groupId> < 阅读全文
posted @ 2021-12-24 16:52 emanlee 阅读(545) 评论(0) 推荐(0)
摘要: @Override is not allowed when implementing interface method IDEA 菜单 File 菜单 → Project Structure 菜单 → Modules 菜单: 把 Language Leve 版本改成大于 5 就可以了 File 菜单 阅读全文
posted @ 2021-12-24 16:17 emanlee 阅读(67) 评论(0) 推荐(0)
摘要: Spring中 context:property-placeholder 元素 <bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderCo 阅读全文
posted @ 2021-12-24 13:04 emanlee 阅读(380) 评论(0) 推荐(0)
摘要: 下面是 3 个实体类,它们分别是 Office、Car 和 Boss。 public class Office { private String officeNo =”001”; //省略 get/setter @Override public String toString() { return 阅读全文
posted @ 2021-12-23 17:12 emanlee 阅读(875) 评论(0) 推荐(0)
上一页 1 ··· 110 111 112 113 114 115 116 117 118 ··· 347 下一页