Easter79 Easter79
4年前
spring中@Scope控制作用域
  注解形势:通过@Scope注解控制作用域,默认使用单实例模式,可修改为多实例模式1/2Specifiesthenameofthescopetousefortheannotatedcomponent/bean.3<pDefaultstoanempty
Stella981 Stella981
4年前
Spring Cloud灰度发布之Nepxion Discovery
《蓝绿部署、红黑部署、AB测试、灰度发布、金丝雀发布、滚动发布的概念与区别(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fduanxz%2Fp%2F5403980.html)》最近公司项目在做架构升级,升级为SpringCloud,我们希望能
Stella981 Stella981
4年前
Spring Boot demo系列(五):Docker部署
2021.2.24更新1概述本文讲述了如何使用Docker部署SpringBoot应用,首先介绍了Docker的安装过程,接着介绍了Docker的一些基础知识,最后讲述了Dockerfile的编写以及部署过程。2环境服务器:aarch64CentOS8
Stella981 Stella981
4年前
Spring Cloud Gateway中的权重路由
摘要:本文主要通过运用SpringCloudGateway的WeightRoutePredicateFactory对URL进行权重路由。1.权重路由1.1权重路由使用场景在开发或者测试的时候,或者线上发布,线上服务多版本控制的时候,需要对服务提供权重路由,最常见的使用就是,一个服务有两个版本,旧版本V1,新版本
Stella981 Stella981
4年前
Spring Cloud Gateway 扩展支持动态限流
之前分享过一篇《SpringCloudGateway原生的接口限流该怎么玩》(https://my.oschina.net/giegie/blog/1838560),核心是依赖SpringCloudGateway默认提供的限流过滤器来实现原生RequestRateLimiter的不足
Easter79 Easter79
4年前
Spring项目JUnit测试报错ClassNotFoundException解决
Eclipse项目上有红色感叹号,各包显示正常。用JUnit测试部分能运行,部分报错,报错如下:ClassnotfoundUserTestjava.lang.ClassNotFoundException:UserTestatjava.net.URLClassLoader.findClass(URLClassLoader.java:3
Stella981 Stella981
4年前
Spring Cloud Alibaba Nacos Config 的使用
一、需求主要实现nacos作为配置中心的一些使用方法。二、实现功能1、加载productproviderdev.yaml配置文件2、实现配置的自动刷新3、实现加载多个配置文件
Stella981 Stella981
4年前
Spring Boot:集成Druid数据源
综合概述数据库连接池负责分配、管理和释放数据库连接,它允许应用程序重复使用一个现有的数据库连接,而不是再重新建立一个;释放空闲时间超过最大空闲时间的数据库连接来避免因为没有释放数据库连接而引起的数据库连接遗漏。通过数据库连接池能明显提高对数据库操作的性能。在Java应用程序开发中,常用的连接池有DBCP、C3P0、Proxool等。Spri
Stella981 Stella981
4年前
Spring xml 注入静态变量
上代码<beanid"cacheJsonRedisSerializer"class"org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer"<constructorargname"mapper"
Stella981 Stella981
4年前
Spring Boot Admin 2.0开箱体验
!Profile(https://uploadimages.jianshu.io/upload_images/9824247a282bed129783bfc.jpeg?imageMogr2/autoorient/strip%7CimageView2/2/w/1240)概述在我之前的《SpringBoot应用监控实战