Wesley13 Wesley13
3年前
Spring Cloud Eureka解析(3) EurekaClient 重要缓存解析
EurekaClient也存在缓存,应用服务实例列表信息在每个EurekaClient服务消费端都有缓存。一般的,Ribbon的LoadBalancer会读取这个缓存,来知道当前有哪些实例可以调用,从而进行负载均衡。这个loadbalancer同样也有缓存。首先看这个LoadBalancer的缓存更新机制,相关类是PollingServerListUpd
Spring Boot集成 Sentinel 实现接口流量控制
Hello,大家好,我是麦洛,今天带大家来了解一下SpringBoot如何继承Sentinel来实现接口流量控制Sentinel控制台搭建在我的上一篇文章阿里出品的Sentinel到底是个什么玩意?中,已经介绍过如何准备Sentinel控制台,大家可以直接参考;Sentinel客户端项目搭建首先我们来创建一个测试项目,这里初始化
Stella981 Stella981
3年前
Spring Boot的@Service和@Autowired和@ComponentScan注解
SpringBoot的@Service和@Autowired和@ComponentScan注解SpringBoot项目的Bean装配默认规则是根据Application类(SpringBoot项目入口类)所在的包位置从上往下扫描,即只扫描该类所在的包及其子包。1.如果需要扫描其上层包中的类,则将其移动到其上层包中2.使用@ComponentSc
Stella981 Stella981
3年前
Spring MVC的web.xml文件的分析
web.xml<listener<listenerclassorg.springframework.web.context.ContextLoaderListener</listenerclass</listener<contextparam<paramnamec
Stella981 Stella981
3年前
Spring Boot如何利用AOP巧妙记录操作日志?
!(https://oscimg.oschina.net/oscnet/7f1d6247ad65413fbca3b77b0bb9433c.png)点击上方蓝字关注我们!(https://oscimg.oschina.net/oscnet/3f5a1c2360f9430c93a00b4715527ed9.jpg)本篇
Stella981 Stella981
3年前
Spring Security 5 学习笔记(八)多个内存用户
©陈华(clinker@163.com(https://www.oschina.net/action/GoToLink?urlmailto%3Aclinker%40163.com%3Fsubject%3DSpring%2520Security%25205%2520%25E5%25AD%25A6%25E4%25B9%25A0%25E7%25AC%2594
Stella981 Stella981
3年前
Spring Cloud Eureka 你还在让它裸奔吗??
前些天栈长在微信公众号Java技术栈分享了SpringCloudEureka最新版实现注册中心的实战教程:SpringCloudEureka注册中心集群搭建,Greenwich最新版!(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fmp.weixin.qq.com%2
Stella981 Stella981
3年前
SAPI 基于Spring极度简单的Restful API工具
SAPI是一个及其精简的RestfulAPI输出工具,诞生的背景是基于目前微服务开发接口,很多中小型项目开发人员在对接口测试时不仅需要使用JUnit等进行业务接口测试,还需要对API进行自测。所以SAPI很好的解决了开发人员需要一个一个参数的往接口测试工具填写调试的反复过程。目前SAPI只需要开发人员引入stater后再启动类加入一行文件即可。下面我们