随笔分类 -  SpringMVC

摘要:参考RuoYi开源项目https://gitee.com/y_project/RuoYi.git 动态数据库 AbstractRoutingDataSource -- Spring提供的轻量级数据源切换方式 简单多数据源配置 在一个普通Spring + Mybatis项目中,如果使用了多数据源,可以 阅读全文
posted @ 2020-01-10 14:35 GordonDicaprio 阅读(627) 评论(0) 推荐(0)
摘要:HTTP协议中的Accept与Content-Type的区别 2018.06.07 22:53 19110浏览 2018.06.07 22:53 19110浏览 2018.06.07 22:53 19110浏览 在开发REST服务时,不可避免的需要了解HTTP协议的内容,其中,我们经常会用到 Acc 阅读全文
posted @ 2020-01-10 11:36 GordonDicaprio 阅读(856) 评论(0) 推荐(0)
摘要:创建ContentNegotiationStrategy组件源码,参考:org.springframework.web.accept.ContentNegotiationManagerFactoryBean#afterPropertiesSet Spring-web源码解析之ContentNegot 阅读全文
posted @ 2020-01-10 11:23 GordonDicaprio 阅读(679) 评论(0) 推荐(0)
摘要:Spring5--@Indexed注解 Spring5--@Indexed注解原创 Crazypokerk_ 最后发布于2019-08-02 17:05:01 阅读数 639 收藏展开引 Spring Framework 5.0作为 Spring Boot 2.0 的底层核心框架,就目前已经发布的版 阅读全文
posted @ 2020-01-10 11:07 GordonDicaprio 阅读(2246) 评论(0) 推荐(0)
摘要:以下共26个注解: 部分注解对应处理类: HandlerMethodArgumentResolver的抽象實現AbstractNamedValueMethodArgumentResolver下的子类 阅读全文
posted @ 2020-01-10 11:00 GordonDicaprio 阅读(1346) 评论(0) 推荐(0)
摘要:两种构造方式创建数据绑定组件: 说明: or null if the binder is just used to convert a plain parameter value【 如果仅使用数据绑定组件的类型转换功能,则可以将target对象设置为null。】 使用方式: 阅读全文
posted @ 2020-01-08 14:52 GordonDicaprio 阅读(293) 评论(0) 推荐(0)
摘要:springMVC中将实体转换为json方法中,判断是否可以写入 其中第173行 ,判断是否可以序列化指定类。 判断是否可以序列化指定实体类. 阅读全文
posted @ 2020-01-07 16:21 GordonDicaprio 阅读(920) 评论(1) 推荐(0)
摘要:越努力越幸运 越努力越幸运 越努力越幸运 整合SSM时启动Tomcat报nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException 阅读全文
posted @ 2020-01-07 14:48 GordonDicaprio 阅读(808) 评论(0) 推荐(0)
摘要:boolean synchronizeOnSession = false:表示该控制器是否在执行时同步session,从而保证该会话的用户串行访问该控制器。一个正在执行,另一个则等待。参考最下方实例: 关于 synchronizeOnSession weyunx关注 2019.01.30 14:52 阅读全文
posted @ 2020-01-07 11:32 GordonDicaprio 阅读(642) 评论(0) 推荐(0)
摘要:afterPropertiesSet方法,初始化bean的时候执行,可以针对某个具体的bean进行配置。afterPropertiesSet 必须实现 InitializingBean接口。实现 InitializingBean接口必须实现afterPropertiesSet方法。————————— 阅读全文
posted @ 2020-01-07 11:19 GordonDicaprio 阅读(877) 评论(0) 推荐(0)
摘要:SpringMVC中重定向参数的使用以及原理解析 OUTPUT_FLASH_MAP_ATTRIBUTE::org.springframework.web.servlet.DispatcherServlet#OUTPUT_FLASH_MAP_ATTRIBUTE INPUT_FLASH_MAP_ATTRIBUTE::org.springframework.web.servlet.DispatcherS 阅读全文
posted @ 2020-01-03 12:03 GordonDicaprio 阅读(1048) 评论(0) 推荐(0)
摘要:原文地址:HTTP的请求头标签 If-Modified-Since 一直以来没有留意过HTTP请求头的IMS(If-Modified-Since)标签。 最近在分析Squid的access.log日志文件时,发现了一个现象。就是即使是对同一个文件进行HTTP请求,第一次和第二次产生的网络流量数据也是 阅读全文
posted @ 2020-01-03 10:19 GordonDicaprio 阅读(277) 评论(0) 推荐(0)
摘要:Object (java.lang) DataBinder (org.springframework.validation) WebDataBinder (org.springframework.web.bind) MapDataBinder (org.springframework.data.web) ServletRequestDataBinder (org.springframework.w 阅读全文
posted @ 2020-01-03 09:14 GordonDicaprio 阅读(265) 评论(0) 推荐(0)
摘要:I WebDataBinderFactory (org.springframework.web.bind.support) DefaultDataBinderFactory (org.springframework.web.bind.support) 用于创建 WebRequestDataBinder InitBinderDataBinderFactory (org.springframework 阅读全文
posted @ 2020-01-03 09:12 GordonDicaprio 阅读(288) 评论(0) 推荐(0)
摘要:request body与content-type使用小结 只针对post请求说明 比较常见的Content-Type 有 1.application/x-www-form-urlencoded 浏览器原生的form表单 形式:key1=value1&key2=value2 提交的数据放在body中 阅读全文
posted @ 2020-01-02 09:24 GordonDicaprio 阅读(1909) 评论(0) 推荐(0)
摘要:表单中<form></form>,如果使用method="get"方式提交,则不会指定请求体编码方式。默认请求参数使用?拼接到url之后。如:http://localhost:8080/a/b/c?name=jack&age=45如果使用method="post"方式提交 如果没有配置请求参数编码方 阅读全文
posted @ 2019-12-19 17:19 GordonDicaprio 阅读(407) 评论(0) 推荐(0)
摘要:@RequestMapping 参数说明: value: 指定请求的实际地址, 比如 /action/info之类。method: 指定请求的method类型, GET、POST、PUT、DELETE等consumes: 指定处理请求的提交内容类型(Content-Type),例如applicati 阅读全文
posted @ 2019-12-19 14:37 GordonDicaprio 阅读(816) 评论(0) 推荐(0)
摘要:HandlerMethodArgumentResolver的抽象實現AbstractNamedValueMethodArgumentResolver下的子类 部分1 阅读全文
posted @ 2019-12-18 23:23 GordonDicaprio 阅读(293) 评论(0) 推荐(0)
摘要:Annotation-based argument resolution 部分2 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#getDefaultArgumentResolver 阅读全文
posted @ 2019-12-18 18:10 GordonDicaprio 阅读(686) 评论(0) 推荐(0)
摘要:附加:HandlerMethodArgumentResolver SpringMVC 参数解析 继承关系以及各解析器解析类型 阅读全文
posted @ 2019-12-17 11:19 GordonDicaprio 阅读(435) 评论(0) 推荐(0)