使用自定义的Spring MVC处理程序拦截器管理会话
原文 - Using a Custom Spring MVC’s Handler Interceptor to Manage Sessions
简介
本教程专注Spring MVC的 HandlerInterceptor.
我们展示一个使用拦截器的高级示例 - 模拟一个会话超时的逻辑, 通过设置自定义次数手动跟踪会话.
如果你想越多更多关于Spring HandlerInterceptor 的基础知识点击这里.
Spring MVC HandlerInterceptor 简介
原文 - Introduction to Spring MVC HandlerInterceptor
Spring MVC处理程序
为了理解拦截器, 让我们回头看一下HandlerMapping. 它把一个方法映射到一个URL上, 因此当一个请求进来时, DispatcherServlet能够调用对用的方法.
事实上, DispatcherServlet使用HandlerAdapter调用方法(Controller里定义的方法).
Spring Boot 使用 JSP
使用 Docusaurus 结合 GitHub 搭建个人站点
介绍一下如何使用GitHub以及 Docusaurus(下面简称Doc) 免费搭建一个个人博客站点.
VSC指定类库文件增强智能感知
有的时候写个demo, 直接页面引用的类库, 导致有些智能感知缺失, 可以在JS的开头增加以下代码增加智能感知:
/// <reference path="../../scripts/vue/types/index.d.ts" />
// 接下来在使用Vue相关方法就会有智能感知了.
Termux远程访问
在电脑上远程访问Termux:
语文考试可以写负能量作文吗
我真的是服你们这群崽子。
Nginx 301重定向域名
下述配置会把jefflei.com
域名的请求返回301跳转到http://www.jefflei.com/
CentOS安装Nginx
以下是安装脚本:
创建Windows服务
自定义Linux Bash终端提示符
Prompt is control via a special shell variable. You need to set PS1
, PS2
, PS3
and PS4
variable. If set, the value is executed as a command prior to issuing each primary prompt.
使用 Docker 部署 Sentry
参考 Sentry Doc.
How to Setup Reverse Proxy on IIS with URL-Rewrite
Most of the system administrator is aware of the reverse proxy. It is a type of proxy server which fetches the resources from one or more computers on clients requests and send back to the client. In simple terms, it works as an intermediate server, which listens to clients query. Then requests to server bases of clients query and returns results to client sent by the server. This tutorial will help you to setup reverse proxy using IIS with URL rewrite and application request routing extension.