上一页 1 ··· 104 105 106 107 108 109 110 111 112 ··· 341 下一页
摘要: WebMvcConfigurer 配置类其实是Spring内部的一种配置方式,采用JavaBean的形式来代替传统的xml配置文件形式进行针对框架个性化定制。 基于 java-based 方式的 spring mvc 配置,需要创建一个配置类并实现 WebMvcConfigurer 接口,WebMv 阅读全文
posted @ 2021-12-26 19:33 emanlee 阅读(1111) 评论(0) 推荐(0)
摘要: @PropertySource @PropertySource 注解用于指定资源文件读取的位置,它不仅能读取 properties 文件,也能读取xml文件,并且通过 YAML 解析器,配合自定义 PropertySourceFactory 实现解析YAML文件。 @Component @Prope 阅读全文
posted @ 2021-12-26 18:25 emanlee 阅读(75) 评论(0) 推荐(0)
摘要: PageHelper 中文乱码 在springmvc 的 mvc:annotation-driven 中配置编码 <mvc:annotation-driven /> 会自动注册DefaultAnnotationHandlerMapping与AnnotationMethodHandlerAdapter 阅读全文
posted @ 2021-12-25 22:52 emanlee 阅读(224) 评论(0) 推荐(0)
摘要: Taglib指令,其实就是定义一个标签库以及自定义标签的前缀。 这样在界面jsp中引入其中的标签库或者标签库文件,然后才可以正常使用其中定义的标签。 <%@ taglib prefix ="bean" uri= "http://struts.apache.org/tags-bean" %> <%@ 阅读全文
posted @ 2021-12-25 21:14 emanlee 阅读(106) 评论(0) 推荐(0)
摘要: 使用ModelAndView类用来存储处理完后的结果数据,以及显示该数据的视图。从名字上看ModelAndView中的Model代表模型,View代表视图,这个名字就很好地解释了该类的作用。 业务处理器调用模型层处理完用户请求后,把结果数据存储在该类的model属性中,把要返回的视图信息存储在该类的 阅读全文
posted @ 2021-12-25 20:53 emanlee 阅读(1169) 评论(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 阅读(214) 评论(0) 推荐(0)
摘要: SSM三大框架的运行流程、加载顺序 web项目启动的加载顺序:以Tomcat举例,启动Tomcat之后,首先会加载web.xml文件:a)容器首先读取web.xml中的<context-param>的配置内容和<listener>标签中配置项;b)紧接着实例化ServletContext对象,并将< 阅读全文
posted @ 2021-12-25 17:52 emanlee 阅读(719) 评论(0) 推荐(0)
摘要: ${pageContext.request.contextPath} 是通过 get方法去取的,先 pageContext.getRequest() 得到 HttpServletRequest 对象,再调用 HttpServletRequest 的 getContextPath方法 作用是取出部署的 阅读全文
posted @ 2021-12-24 19:59 emanlee 阅读(453) 评论(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 阅读(521) 评论(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 阅读(48) 评论(0) 推荐(0)
上一页 1 ··· 104 105 106 107 108 109 110 111 112 ··· 341 下一页