上一页 1 2 3 4 5 6 ··· 23 下一页

6.BeanFactory与FactoryBean的区别

摘要: https://www.jianshu.com/p/9fd5f04b62c8 首先二者从名称上就能看到区别,BeanFactory是Spring提供的存放Bean的工厂,FactoryBean是一个可生产Bean的工厂Bean。 https://zhuanlan.zhihu.com/p/518210 阅读全文
posted @ 2023-04-26 15:42 companion 阅读(23) 评论(0) 推荐(0) 编辑

5.spring 中的 bean 是线程安全的吗?

摘要: https://www.mianshigee.com/question/10477vxb https://www.zhihu.com/pin/1365332853371297792 https://blog.51cto.com/u_10954139/4839044 清楚 阅读全文
posted @ 2023-04-26 13:48 companion 阅读(16) 评论(0) 推荐(0) 编辑

4.Spring中IOC创建对象的两种方式和创建时机

摘要: https://blog.csdn.net/jike11231/article/details/116357864 创建时机1:默认的在Spring容器启动的时候2:在getBean的时候创建对象(就是拿到配置文件中的标识符的时候创建对象) 在Spring的配置文件bean中有一个属性lazy-in 阅读全文
posted @ 2023-04-26 13:33 companion 阅读(49) 评论(0) 推荐(0) 编辑

3.springbean的作用域

摘要: https://baijiahao.baidu.com/s?id=1610298792072480906&wfr=spider&for=pc https://blog.csdn.net/weixin_42223248/article/details/113852199 一共是5种作用域,低版本的是下 阅读全文
posted @ 2023-04-26 11:03 companion 阅读(13) 评论(0) 推荐(0) 编辑

2.mysql binlog的三种格式及区别

摘要: 好文: https://www.cnblogs.com/syw20170419/p/16443105.html 1、三种格式:row、statement、mixed 2、区别:row格式文件比较大,statement比较小,row格式保存的是一行一行的数据,statement保存的是sql语句,mi 阅读全文
posted @ 2023-04-25 17:48 companion 阅读(76) 评论(0) 推荐(0) 编辑

1.int和Integer的区别

摘要: 好文: https://www.cnblogs.com/dearcabbage/p/10603460.html 如果已经创建了一个相同的整数,使用valueOf创建第二次时,不会使用new关键字,而用已经缓存的对象。所以使用valueOf方法创建两次对象,若对应的数值相同,且数值在-128~127之 阅读全文
posted @ 2023-04-25 17:06 companion 阅读(8) 评论(0) 推荐(0) 编辑

2-Spring Cloud alibaba版本对应

摘要: 目前最新版本:Spring Cloud Alibaba 2.2.1 Spring Cloud Alibaba 2.1.0 RELEASE对应Spring Cloud Greenwich版本 Spring Cloud Alibaba 2.2.0 RELEASE对应Spring Cloud Hoxton 阅读全文
posted @ 2023-04-14 14:47 companion 阅读(148) 评论(0) 推荐(0) 编辑

1-Spring Cloud Alibaba 主要特性

摘要: Spring Cloud Alibaba 是阿里巴巴开源中间件跟 Spring Cloud 体系的融合: 主要特性: 1、流量控制和服务降级:使用阿里巴巴Sentinel进行流量控制,断路和系统自适应保护; 2、服务注册和发现:实例可以在Alibaba Nacos上注册,客户可以使用Spring管理 阅读全文
posted @ 2023-04-14 14:46 companion 阅读(30) 评论(0) 推荐(0) 编辑

29-springcloud-config-5-配置信息的加解密安全处理

摘要: 前面是在Git仓库中明文存储配置信息值,很多场景下,对于某些敏感的配置内容(例如数据库账号、密码等),应该加密存储,config server为我们考虑到了这一点,对配置内容提供了加密与解密支持; 安装JCE config server的加解密功能依赖Java Cryptography Extens 阅读全文
posted @ 2023-04-14 14:23 companion 阅读(202) 评论(0) 推荐(0) 编辑

28-springcloud-config-4-构建 Springcloud config 配置中心客户端

摘要: 前面已经搭建好了配置中心的服务端,并且通过访问接口从config服务端读取配置信息, 不过实际开发中,更多的不是我们人为去获取配置信息,而是由微服务自己从config服务端上加载配置信息, 那么怎么来加载呢? 1、我们的各个微服务都是客户端,比如服务提供者、服务消费者等各个微服务都可以从配置中心获取 阅读全文
posted @ 2023-04-14 14:16 companion 阅读(35) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 23 下一页