Stella981 Stella981
3年前
Kafka 入门和 Spring Boot 集成
Kafka入门和SpringBoot集成概述kafka是一个高性能的消息队列,也是一个分布式流处理平台(这里的流指的是数据流)。由java和Scala语言编写,最早由LinkedIn开发,并2011年开源,现在由Apache开发维护。应用场景下面列举了
Stella981 Stella981
3年前
Spring IOC 巨多 非常 有用
关联文章: 关于SpringIOC(DI依赖注入)你需要知道的一切(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fjavazejian%2Farticle%2Fdetails%2F54561302) 关于SpringAOP(Asp
Stella981 Stella981
3年前
Spring Cache缓存技术的介绍
缓存用于提升系统的性能,特别适用于一些对资源需求比较高的操作。本文介绍如何基于springbootcache技术,使用caffeine作为具体的缓存实现,对操作的结果进行缓存。demo场景本demo将创建一个web应用,提供两个Rest接口。一个接口用于接受查询请求,并有条件的缓存查询结果。另一个接口用于获取所有缓存的数据,用于监控
Wesley13 Wesley13
3年前
Spring接收参数的几种形式
通过Springcontroller的机制自动绑定参数form表单或者通过url传递过来的参数,如果参数name和预定义的name一致则可以直接绑定。Controller代码@RequestMapping("test")publicvoidtest(intcount){}或者@Req
Stella981 Stella981
3年前
Spring Boot + Redis 处理 Session 共享
!(https://oscimg.oschina.net/oscnet/1c33266bc92f4817b73ae60421658769.png)背景Web开发中,通过Session在服务端记录用户状态是很常见的操作。对于Web开发中Session、Cookie等概念请参考《Session机制详解》
Stella981 Stella981
3年前
Spring boot webflux 中实现 RequestContextHolder
说明在Springbootweb中我们可以通过RequestContextHolder很方便的获取request。ServletRequestAttributesrequestAttributes(ServletRequestAttributes)RequestContextHolder.getReq
Stella981 Stella981
3年前
Spring MVC详细源码解析(下篇)
至此,第二步已经全部结束,接下来要接触到HandlerAdapter。第四步:再次回到DispatcherServlet类的doDispatch方法,继续往下走,进到getHandlerAdapter方法中。在DispatcherServlet类中维护了一个名为handlerAdapters的List集合,里面保存了所有的HandlerA
Easter79 Easter79
3年前
Spring表达式语言:SpEL
1、Spring表达式语言(简称:SpEL):是一个支持运行时查询和操作对象图的强大的表达式语言。2、语法类似于EL:SpEL使用{...}作为定界符,所有在大括号内的字符都被认为是SpEL。3、SpEL为bean的属性进行动态赋值提供了便利。4、通过SpEL可以实现:\通过bean的id对bean进行引用\调用方法以及引用对象
Stella981 Stella981
3年前
Spring Boot国际化支持
文章目录添加Maven支持(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fsuperfjj%2Farticle%2Fdetails%2F104422396%23Maven_5)LocaleResolver(https:/
Easter79 Easter79
3年前
Spring自带的多线程任务
1.添加配置类packagecom.yiyoudao.config;importorg.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;importorg.springframework.context.annotation.Compo