spring 5
0 人感兴趣 · 9 次引用
- 最新
- 推荐

Spring Boot 实现通用 Auth 认证的 4 种方式
文章介绍了spring-boot中实现通用auth的四种方式,包括 传统AOP、拦截器、参数解析器和过滤器,并提供了对应的实例代码,最后简单总结了下他们的执行顺序。

面试被问 spring ioc,这样说让面试官眼前一亮 (1)
首先,我们看一下spring 官方对 IOC 容器的解释(spring.io):

如何基于 Spring Aware 和 InitializingBean 接口实现策略模式
在实际开发中常会用到策略模型,根据不同的场景选用不同的策略来处理业务,实现策略模式的方法有多种,今天介绍基于Spring Aware和InitializingBean接口来策略模式的实现方式,该实现方式比较简单优雅

OpenFeign 和 Consul 爱恨交织的两天
在公司对项目进行拆分,用consul做注册中心。既然弄注册中心了, 那就得远程调用,那就得整上OpenFeign进行远程调用,你说是不?