Skip to content

cuitpanfei/custom_anno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

自定义前端控制器注解

使用此jar包的用户需要注意

  1. 使用此jar包,将会强制拦截所有http请求,所以,此jar包不兼容其它框架的前端控制器
  2. 此jar包依赖于SpringBoot Email,需要在项目的配置文件中添加email相关配置
    spring:
      mail:
        host: smtp.163.com
        username: xxxx@163.com
        password: xxxx
        properties:
          mail:
            smtp:
              auth: true
              starttls:
                enable: true
                required: true
  3. MethodMapping、ErrorMsgException。这两个类可能是你编程的时候使用最多的类,请多了解一下
  4. MethodMapping、ResolvePostProcessor、DispatcherServlet。这三个类可能是你了解此jar包设计原理的重要类

About

自定义前端拦截器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages