程序设计记录

# 程序设计

### StringBoot 框架

[获取参数 ](https://www.jianshu.com/p/974894823539)\

[Spring aop 打印日志](https://www.cnblogs.com/shihaiming/p/13363935.html)\

```

org.springframework.boot

spring-boot-starter-aop

```

[Shiro框架](https://blog.csdn.net/weixin_35099248/article/details/111560970)\

[post get 请求参数获取的原理](https://blog.csdn.net/a718515028/article/details/77744117)\

[]()\

>过滤器  web.xml 配置

```

import com.alibaba.dubbo.common.logger.Logger;

import com.alibaba.dubbo.common.logger.LoggerFactory;

import javax.servlet.*;

import java.io.IOException;

public class AuthHandlerimplements Filter{

    private static final Loggerlogger = LoggerFactory.getLogger(AuthHandler.class);

@Override

    public void init(FilterConfig filterConfig) {

}

    @Override

    public void doFilter(ServletRequest servletRequest,

ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException{

        //对请求进行预处理

        logger.info("过滤器开始对请求进行预处理:");

filterChain.doFilter(servletRequest, servletResponse);

}

    @Override

    public void destroy() {

        logger.info("销毁过滤器");

}

}

```

>过滤器

```

AuthHandler

com.bimfoo.sso.interceptor.AuthHandler

AuthHandler

/*

```

>SpringBoot 引入reads 对象为null的解决办法 \

https://blog.csdn.net/weixin_39911056/article/details/110986659

>@Autowired非controller中无法注入:\

https://blog.csdn.net/qq_40971752/article/details/86357151

>获取post from-data的表单参数

```

CommonsMultipartResolver commonsMultipartResolver =new CommonsMultipartResolver(httpRequest.getSession().getServletContext());

MultipartHttpServletRequest multipartRequest = commonsMultipartResolver.resolveMultipart(httpRequest);

```

### swagger

>swagger head 参数配置:\

https://blog.csdn.net/aiguo94/article/details/99873920

springboot中 @Autowired 注入后为空null

https://www.jianshu.com/p/bd34c232b363

SpringBoot 拦截器

https://www.cnblogs.com/zktww/p/11550891.html

mybatis @select 注解的使用

### flyway学习之migrate 

### Cron

[Cron 表达式解析](https://www.cnblogs.com/yanghj010/p/10875151.html)\

[]()\

你可能感兴趣的:(程序设计记录)