- 博客(9)
- 收藏
- 关注
原创 SpringSecurityOauth2
SpringSecurity都是通过SpringSecurity过滤器链(SpringSecurityFilterChain)来实现功能的1.授权服务器授权服务器主要有两条SpringSecurityFilterChain过滤器链。一条是处理和token有关的请求,另一条是处理其他请求的。2.资源服务器和客户端资源服务器和客户端都是只有一条SpringSecurityFil...
2018-09-14 23:41:16 206
原创 SpringBoot打成war包部署在Servlet 3.0以下的was环境
1.SpringBoot介绍首先,介绍一下SpringBoot,SpringBoot主要有两大功能:自动配置和一中starter模块。自动配置使用:SpringBoot项目会通过@EnableAutoConfiguration开启自动配置,若没有次注解自动配置的关闭的。@SpringBootApplication会引入@EnableAutoConfiguration,所以我们不必另外添加...
2018-09-14 23:34:17 1833
原创 DispatchServlet的三种配置方式
1. OverviewIn this article we’ll cover three different approaches of configuring a DispatcherServlet available in recent versions of the Spring Framework:We’ll start with an XML configuration and ...
2018-09-08 22:58:53 1866
原创 HttpClient发送上传文件请求
HttpClient发送上传文件请求时,在构造请求对象时,content-type不能含有boundary对象,因为在构造请求体时会生成一个唯一的boundary,导致content-type的boundary和实际的boundary不一致...
2018-08-09 21:54:51 533
原创 springMVC 文件上传
springMVC文件上传通过表单发送post请求,content-type为multipart/form-data,表示该请求支持向服务器发送二进制数据。而且还可以一个发送多个文件。The content type "application/x-www-form-urlencoded" is inefficient for sending large quantities of binary...
2018-08-07 21:58:26 210
原创 springsecurity session并发问题
首先,先介绍一下登录互顶流程。假设a账户在1处登录成功,此时,springsecurity将sessionId和用户信息封装成sessionInfomation保存到 SessionRegistry对象中,然后a账户又在2处登录,此时会从sessionRegistry对象中获取所有sessionInfomation,并判断有没有与当前用户名一样的sessionInfomation,若有,就...
2018-07-17 20:05:37 859
原创 tomcat Http请求处理流程
具体过程如下:1.连接器创建request和response对象;2.连接器调用 StandarContext实例的invoke()方法;3.接着,StandarContext实例的invoke()方法调用其他管道对象的invoke()方法。StandardContext中管道对象的基础阀是StandardContextValve实例,因此,StandardContext的管道对象会调用Stand...
2018-05-29 21:02:38 744
原创 设置文件下载文件名
通过HttpServletResponse.setHeader("Content-Disposition","attachment; filename="+filename);附request header和response header如下: 1)请求(客户端->服务端[request]) GET(请求的方式) /newcoder/hello.html(请求的目标资源...
2018-05-29 20:32:31 1634
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人