Stella981 Stella981
3年前
Spring MVC 4.1 支持jsonp
使用ResponseBodyAdvice支持jsonpResponseBodyAdvice是一个接口,接口描述,package org.springframework.web.servlet.mvc.method.annotation;/  Allows customizing the respon
Stella981 Stella981
3年前
Spring Cloud Ribbon 源码解析
!(https://oscimg.oschina.net/oscnet/up86df91069ae3dfcb8ace0be6cd5d74b2eb1.JPEG)专栏目录1.SpringCloudOpenFeign源码解析(https://www.oschina.net/action/GoToLink?urlhttps%3
Stella981 Stella981
3年前
Spring Cloud工程模块划分
SpringCloud工程模块划分现在网络上都在讲SpringCloud的各个组件,但当我们自己也把SpringCloud引入进来的时候,却发现第一个要解决的问题是:工程的模块如何划分在之前我写过一篇重构购物车的过程(https://www.oschina.n
Stella981 Stella981
3年前
Spring Boot Servlet支持介绍
Web开发使用 Controller 基本上可以完成大部分需求,但是我们还可能会用到Servlet、Filter、Listener、Interceptor 等等。当使用SpringBoot时,嵌入式Servlet容器通过扫描注解的方式注册Servlet、Filter和Servlet规范的所有监听器(如HttpSessionListener监听器)。 
Stella981 Stella981
3年前
Spring Boot Starters是什么?
版权声明:该文转自: http://www.nosuchfield.com/2017/10/15/SpringBootStarters/。版权归原创作者,在此对原作者的付出表示感谢!starter是SpringBoot中的一个新发明,它有效的降低了项目开发过程的复杂程度,对于简化开发操作有着非常好的效果。本文转载了一片文章,详细介绍了spring
Easter79 Easter79
3年前
Spring中JdbcTemplate使用RowMapper
1packagecom.cxl.demo.dao;23importjava.sql.ResultSet;4importjava.sql.SQLException;5importjava.util.List;6importorg.springfram
Stella981 Stella981
3年前
Spring Boot 2.3.3 正式发布!
  SpringBoot2.3.3稳定版已发布,可从repo.spring.io和MavenCentral(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzI3ODcxMzQzMw%3D%3D%26mid%3
Wesley13 Wesley13
3年前
微服务开发实战(spring
平日里,都是看别人的文章,虽开公众号写了不少,但像样的不多。年末了,年终总结也没来得及写,为了输出点像样的东西,立刻就着手这个系列。一个键一个字母的敲,边敲边写,文章还在持续更新中,直至完整。相信通过这个系列的系统练习,能有一个大跨步的提升。专栏简介(是什么?)结合SpringCloud、SpringCloudAlibaba、Dubbo等开源
Stella981 Stella981
3年前
Spring Boot 静态资源处理
SpringBoot默认为我们提供了静态资源处理,使用WebMvcAutoConfiguration中的配置各种属性。建议大家使用SpringBoot的默认配置方式,如果需要特殊处理的再通过配置进行修改。如果想要自己完全控制WebMVC,就需要在@Configuration注解的配置类上增加@EnableWebMvc(@SpringBoot
Stella981 Stella981
3年前
Spring MVC的文件下载
这篇文章介绍的方法在某些时候会有一些问题,小瑕疵,请大家看更好的方法(https://my.oschina.net/songxinqiang/blog/898901)读取文件要下载文件,首先是将文件内容读取进来,使用字节数组存储起来,这里使用spring里面的工具类实现importorg.springframework.u