上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 114 下一页
摘要: 内部类可以访问外部类的所有字段属性和方法(包括静态) 静态内部类不能访问外部类的任何字段属性和方法(包括静态) 阅读全文
posted @ 2023-03-06 13:40 甜菜波波 阅读(33) 评论(0) 推荐(0)
摘要: 一:基础知识1.通过FilterRegistrationBean实例注册,该方法能够设置过滤器之间的优先级2.为了演示优先级,这里创建2个测试过滤器类:Test1Filter、Test2Filter通过实现javax.servlet.Filter接口,覆盖其doFilter(ServletReque 阅读全文
posted @ 2023-03-03 15:29 甜菜波波 阅读(4991) 评论(0) 推荐(0)
摘要: WebMvcConfigurerAdapter配置类是spring提供的一种配置方式,采用JavaBean的方式替代传统的基于xml的配置来对spring框架进行自定义的配置。因此,在spring boot提倡的基于注解的配置,采用“约定大于配置”的风格下,当需要进行自定义的配置时,便可以继承Web 阅读全文
posted @ 2023-03-03 15:26 甜菜波波 阅读(641) 评论(0) 推荐(0)
摘要: 前言今天在做项目时遇到了一个有关参数解析HandlerMethodArgumentResolver的使用疑惑。我想作为新手的我在此和大家一起交流并记录。接下来开始发车......正文 首先先来认识一下这个接口,HandlerMethodArgumentResolver。 public interfa 阅读全文
posted @ 2023-03-03 15:14 甜菜波波 阅读(373) 评论(0) 推荐(0)
摘要: 前言今天看有小伙伴求救: 我还是一贯如此, 有人不明白,没玩过HandlerMethodArgumentResolver 。那么很可能不止他一个人, 那么我就有必要出手。不多说,开搞。 正文快速模拟出这个使用场景 : 假如有好多接口,都需要用到 当前的业务参数, 这个业务场景需要的参数 是 当前登录 阅读全文
posted @ 2023-03-03 15:13 甜菜波波 阅读(427) 评论(0) 推荐(0)
摘要: package com.example.springboot.common; import org.springframework.core.MethodParameter; import org.springframework.http.MediaType; import org.springfr 阅读全文
posted @ 2023-03-03 14:14 甜菜波波 阅读(41) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/MrYushiwen/article/details/122493709 阅读全文
posted @ 2023-03-03 13:37 甜菜波波 阅读(9) 评论(0) 推荐(0)
摘要: 前言 该篇文章,还是一贯的风格,源码+示例+自言自语的分析,目的只有一个 : 就是想让大家都会玩 Condition、Conditional。 正文 先看看 Condition 是被放在包spring context(上下文/容器) 里面了: spring context(上下文/容器) 接着我们看 阅读全文
posted @ 2023-03-02 14:51 甜菜波波 阅读(212) 评论(0) 推荐(0)
摘要: HttpServletWrapper 和 HttpServletResponseWrapper 1). Servlet API 中提供了一个 HttpServletRequestWrapper 类来包装原始的 request 对象, HttpServletRequestWrapper 类实现了 Ht 阅读全文
posted @ 2023-03-02 14:28 甜菜波波 阅读(309) 评论(0) 推荐(0)
摘要: package com.example.springboot.core; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import javax.servlet.http.Http 阅读全文
posted @ 2023-03-01 17:49 甜菜波波 阅读(792) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 114 下一页