![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springmvc
文章平均质量分 63
夜雨徐徐
有趣的灵魂
展开
-
springMVC初始化流程源码
1.ioc容器初始化过程: 容器启动时加载web.xml ContextLoaderListener继承了ServletContextListener,并重写了contextInitialized(ServletContextEvent event)方法,web容器启动时ServletContextListener监听调用ContextLoaderListener contextInitialized()方法 contextInitialized初始化initWebApplicationC..原创 2021-03-06 11:17:25 · 103 阅读 · 0 评论 -
spring 源码下载 导入idea总结
1、下载Spring源码 github首页搜索 “spring” 选择 spring-projects/spring-framework 点击 Branch master 选择5.0.x下载源码 ZIP压缩包 Clone or download -> Download ZIP 2、由于Spring是由gradle进行编译,所以必须下载Gradle 地址:https://grad...转载 2020-02-24 17:55:17 · 451 阅读 · 0 评论 -
SpringMvc源码学习_第一节RequestMappingInfo与@RequestMaping
public @interface RequestMapping { String[] value() default {}; RequestMethod[] method() default {}; String[] params() default {}; String[] headers() default {}; St...转载 2018-09-11 09:46:41 · 2823 阅读 · 0 评论 -
用 Spring @ResponseBody & ResponseEntity 整合 JSONP
这篇文章主要展示了如何用 Spring REST 整合 @ResponseBody 和 ResponseEntity,以及 JSONP。JSONP文本格式由JSON填充,通常需解决跨域交互时才会用到它。 如果我们这样发送请求: http://localhost:8080/book1?callback=myfunction 预期的JSONP响应应该是这样: myfunction({"book...转载 2019-09-30 10:40:30 · 335 阅读 · 0 评论