E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
spring5官方文档翻译
Spring5
基础
基于
Spring5
.2.6版本。
卡斯特梅的雨伞
·
2022-02-25 02:00
WebClient抛UnsupportedMediaTypeException异常解决
目录前言问题背景问题分析解决方案方案一方案二方案三自定义解码器设置解码器方案四方案五方案六前言前面分享了
Spring5
中的WebClient使用方法详解后,就有朋友在segmentfault上给博主提了一个付费的问题
·
2022-02-24 16:46
一文带你解读
Spring5
源码解析 IOC之开启Bean的加载,以及FactoryBean和BeanFactory的区别。
前言通过往期的文章我们已经了解了Spring对XML配置文件的解析,将分析的信息组装成BeanDefinition,并将其保存到相应的BeanDefinitionRegistry中,至此SpringIOC的初始化工作已经完成,这篇文章主要对Bean的加载进行一个深入的了解及探索。想要了解Bean就必要要知道接口BeanFactory,接下来我们就从BeanFactory切入BeanFactory我
码上遇见你
·
2022-02-22 18:00
Spring5
IOC容器解析——BeanDefinitionReader
概述BeanDefinitionReader的作用是读取Spring配置文件中的内容,将其转换为IOC容器内部的数据结构:BeanDefinition。在前面章节关于BeanDefinition的学习中有提到XmlBeanDefinitionReader,该类是BeanDefinitionReader的一个重要实现。本文主要对BeanDefinitionReader体系中的关键方法进行解读。Bea
小波同学
·
2022-02-21 13:57
【Kafka
官方文档翻译
】5.1.4. 生态系统
官方原文地址:https://kafka.apache.org/0101/documentation.html#ecosystem除了Kafka的主要版本之外,还有很多应用集成了Kafka工具。该生态系统页面中列出的许多工具,包括流处理系统,Hadoop的集成,监控和部署工具。
FlySheep_ly
·
2022-02-19 09:07
Spring Boot 2.2.6Release
官方文档翻译
第一章SpringBoot文档第二章入门第三章使用SpringBoot第四章SpringBoot功能特性SpringBoot功能特性(一)SpringBoot功能特性(二)SpringBoot功能特性(三)持续更新中。。。敬请关注
芥末味的冰淇淋
·
2022-02-18 00:48
学习
Spring5
必知必会(1)~未使用spring前的麻烦
一、未使用spring前的麻烦开闭原则:扩展是开放的,但是对于修改是“封闭的”。1、代码耦合度比较高【不符合开闭原则】:publicclassEmployeeServiceImplimplementsIEmployeeService{privateIEmployeeDAOdao;publicEmployeeServiceImpl(){//创建依赖对象dao=newEmployeeDAOJdbcIm
一乐乐
·
2022-02-16 09:00
spring5
(5) - bean的销毁
一.代码演示init-method=""destroy-method=""配置(如果不使用spring测试,就无法正常关闭spring容器destroy方法就得手动调用了)(1)MyDataSource类packagecom.keen.lifescycle;publicclassMyDataSource{publicMyDataSource(){System.out.println("构造对象..
小白201808
·
2022-02-15 22:11
Spring5
源码解析系列一——IoC容器核心类图
基本概念梳理IoC(InversionofControl,控制反转)就是把原来代码里需要实现的对象创建、依赖,反转给容器来帮忙实现。我们需要创建一个容器,同时需要一种描述来让容器知道要创建的对象与对象的关系。这个描述最具体的表现就是我们所看到的配置文件。DI(DependencyInjection,依赖注入)就是指对象被动接受依赖类而不自己主动去找,换句话说,就是指对象不是从容器中查找它依赖的类,
为了生活,加油
·
2022-02-15 16:00
【Hazelcast系列一】Hazelcast 概览
hazelcastIMDG声明本系列文章为学习Hazelcast的笔记,内容大部分都为
官方文档翻译
,如果对Hazelcast感兴趣,可移步Hazelcast查看官方原版文档。
大哥你先走
·
2022-02-15 05:15
StackExchange.Redis 系列 1:基础使用
%E5%88%97/本文转自:https://blog.zhuliang.ltd/2020/01/backend/StackExchangeRedis-BasicUsage.html本系列博文是“伪”
官方文档翻译
Nondeterminacy
·
2022-02-14 16:20
spring5
源码系列--循环依赖 之 手写代码模拟spring循环依赖
本次博客的目标1.手写spring循环依赖的整个过程2.spring怎么解决循环依赖3.为什么要二级缓存和三级缓存4.spring有没有解决构造函数的循环依赖5.spring有没有解决多例下的循环依赖.一.什么是循环依赖?如下图所示:A类依赖了B类,同时B类有依赖了A类.这就是循环依赖,形成了一个闭环如上图:A依赖了B,B同时依赖了A和C,C依赖了A.这也是循环依赖.,形成了一个闭环那么,如果出现
小梦唠娱乐
·
2022-02-13 16:49
spring 5.0.x源码学习系列六: 后置处理器ConfigurationClassPostProcessor之BeanDefinitionRegistryPostProcessor身份
前言上篇博客
spring5
.0.x源码学习系列五:AnnotationConfigApplicationContext类refresh方法之invokeBeanFactoryPostProcessor(
avengerEug
·
2022-02-12 08:43
阿里P8Java架构师是如何规划架构体系的呢?
性能优化JVM调优Java程序性能优化TomcatMysqlSpringIOCSpringAOPSpringMVC
Spring5
新特性Mybatis分布式架构架构核心服务层技术架构关键技术设施分布式消息通讯异步于
Java黎先生
·
2022-02-11 07:00
spring测试用例
spring测试用例环境搭建为方便理解spring,记录对spring的分析1.pom.xmljustwriteitcom.dsq.justwriteit1.0-SNAPSHOT4.0.0
spring5
5.1.1
猪肉炖粉条_001
·
2022-02-09 22:37
spring cloud微服务分布式云架构-Gateway入门
SpringCloudGateway是Spring官方基于
Spring5
.0,SpringBoot2.0和ProjectReactor等技术开发的网关,SpringCloudGateway旨在为微服务架构提供一种简单而有效的统一的
IT达人Q
·
2022-02-09 01:02
在
Spring5
中使用Junit
1.在pom.xml中添加依赖添加依赖.png2.编写待测程序待测程序.png3.配置bean文件配置.png4.编写测试程序鼠标停在Max类的后面按“Alt+Enter”,选择“CreateTest”,选择Generate->Test,在如图所以界面勾选JUnit4,并勾选待测方法创建测试类.png完成后,编写MaxTest类Snipaste_2019-03-04_20-36-07.png使用a
Rebirth_914
·
2022-02-08 20:05
Spring5
中SpringWebContext方法过时的解决方案
目录
Spring5
SpringWebContext方法过时调用这个即可SpringWebContext在
Spring5
中报错解决办法(SpringWebContext在
spring5
中过时)
Spring5
SpringWebContext
·
2022-02-08 13:15
面试一线互联网大厂?那这些技术你必须得会!
1.热门框架源码学习1设计模式篇2
Spring5
源码解读篇3Mybatis篇4SpringBoot2篇imageimage.gif2.自动化工具专题2.1Maven项目工具2.2Git分布式版本控制2.3Sonar
皮皮尘啊
·
2022-02-08 12:41
狂神SpringCloud学习笔记
从入门到入土参考书:SpringCloudNetflix中文文档:https://springcloud.cc/spring-cloud-netflix.htmlSpringCloud中文API文档(
官方文档翻译
版
一直会努力的波吉
·
2022-02-07 18:08
学习笔记
restful
spring
spring
cloud
程序包org.springframework.cache.guava不存在
Spring5
即将放弃掉GuavaCache作为缓存机制,而改用Caffeine作为新的本地Cache的组件。
悸末boy
·
2022-02-06 13:28
Spring-基本概念
一、
Spring5
的技术架构图二、Spring简介1、是什么?
Lucksheep
·
2022-02-06 12:29
Spring5
.0源码学习系列之Spring AOP技术
在学习SpringAOP源码之前,您是否对AOP有足够熟悉的理解?在对应用都不熟悉之前就去学习源码,肯定是很难理解的,所以本文先不描述源码的实现,先通过本篇博客了解熟悉SpringAOP,然后再学习源码1、什么是AOP技术?引用Spring官网对AOP技术的概述:Aspect-OrientedProgramming(AOP)complementsObject-OrientedProgramming
码上入坟
·
2022-02-04 23:43
在
Spring5
中使用JUnit
1.在pom文件中添加依赖图片发自App2.编写待测程序Max.java图片发自App3.配置Max的bean图片发自App4.创建单元测试代码在Max类的声明后面按"Alt+Enter",选择"CreateTest",或在类的代码体右键单击,选择Generate->Test,在如图所以界面勾选JUnit4,并勾选待测方法getMax(),点击okMax类完成后,在Test包下,会自动创建一个Ma
嗯哼65
·
2022-02-04 17:07
Spring IoC源码分析(二)
一、上文回顾上节基于可达性分析讲了Spring的BeanFactory的初始化,现在来回顾一下BeanFactory创建过程中关键的方法refresh,另外已经从当前文章开始后续的文章会把源码更新到
spring5
Persona_K
·
2022-02-03 04:19
操作指南|最详尽文档翻译志愿指南
社区翻译任务类型当前,社区文档翻译任务分为三种:ApachePulsar
官方文档翻译
:主要任务是将Apa
·
2022-01-19 14:27
Spring5
——Spring事务原理
前言业务系统的数据,一般最后都会落入到数据库中,例如MySQL、Oracle等主流数据库,不可避免的,在数据更新时,有可能会遇到错误,这时需要将之前的数据更新操作撤回,避免错误数据。Spring的声明式事务能帮我们处理回滚操作,让我们不需要去关注数据库底层的事务操作,可以不用在出现异常情况下,在try/catch/finaly中手写回滚操作。Spring的事务保证程度比行业中其它技术(例如TCC/
小波同学
·
2022-01-09 00:48
30个类手写Spring核心原理之AOP代码织入(5)
本文节选自《
Spring5
核心原理》前面我们已经完成了SpringIoC、DI、MVC三大核心模块的功能,并保证了功能可用。接下来要完成Spring的另一个核心模块—AOP,这也是最难的部分。
·
2021-12-30 14:09
javaspring源码
30个类手写Spring核心原理之MVC映射功能(4)
本文节选自《
Spring5
核心原理》接下来我们来完成MVC模块的功能,应该不需要再做说明。
·
2021-12-30 14:09
javaspring源码
30个类手写Spring核心原理之Ioc顶层架构设计(2)
本文节选自《
Spring5
核心原理》1Annotation(自定义配置)模块Annotation的代码实现我们还是沿用Mini版本的,保持不变,复制过来便可。
·
2021-12-30 14:08
javaspring源码
30个类手写Spring核心原理之依赖注入功能(3)
本文节选自《
Spring5
核心原理》在之前的源码分析中我们已经了解到,依赖注入(DI)的入口是getBean()方法,前面的IoC手写部分基本流程已通。
·
2021-12-30 14:08
javaspring源码
用300行代码手写1个Spring框架,麻雀虽小五脏俱全
本文节选自《
Spring5
核心原理》1自定义配置1.1配置application.properties文件为了解析方便,我们用application.properties来代替application.xml
·
2021-12-30 14:37
javaspring源码
基于Gradle的Spring源码下载及构建技巧
1
Spring5
源码下载首先你的JDK需要升级到1.8以上版本。从Spring3.0开始,Spring源码采用GitHub托管,不再提供官网下载链接。
·
2021-12-30 14:37
javaspring源码
爆肝30天,肝出来史上最透彻Spring原理和27道高频面试题总结
1Spring环境预热篇标题备注Tom弹架构:
Spring5
系统架构2021/12/01已更新Tom弹架构:Spring版本命名规则2021/12/02已更新Tom弹架构:基于Gradle的Spring
·
2021-12-30 14:37
javaspring源码
Spring核心原理之 IoC容器中那些鲜为人知的细节(3)
本文节选自《
Spring5
核心原理》SpringIoC容器还有一些高级特性,如使用lazy-init属性对Bean预初始化、使用FactoryBean产生或者修饰Bean对象的生成、IoC容器在初始化Bean
·
2021-12-25 15:13
javaspring源码
Spring核心原理之IoC容器初体验(2)
本文节选自《
Spring5
核心原理》1IoC与DI基本概念IoC(InversionofControl,控制反转)就是把原来代码里需要实现的对象创建、依赖,反转给容器来帮忙实现。
·
2021-12-24 14:51
javaspring源码
Spring核心原理分析之MVC九大组件(1)
本文节选自《
Spring5
核心原理》1什么是SpringMVCSpringMVC是Spring提供的一个基于MVC设计模式的轻量级Web开发框架,本质上相当于Servlet。
·
2021-12-22 14:35
javaspring源码
30个类手写Spring核心原理之自定义ORM(下)(7)
本文节选自《
Spring5
核心原理》3基于SpringJDBC实现关键功能3.1ClassMappingsClassMappings主要定义基础的映射类型,代码如下:packagecom.tom.orm.framework
·
2021-12-21 13:18
javaspring源码
30个类手写Spring核心原理之自定义ORM(上)(6)
本文节选自《
Spring5
核心原理》1实现思路概述1.1从ResultSet说起说到ResultSet,有Java开发经验的“小伙伴”自然最熟悉不过了,不过我相信对于大多数人来说也算是“最熟悉的陌生人”
·
2021-12-21 13:17
javaspring源码
30个类手写Spring核心原理之动态数据源切换(8)
本文节选自《
Spring5
核心原理》阅读本文之前,请先阅读以下内容:30个类手写Spring核心原理之自定义ORM(上)(6)30个类手写Spring核心原理之自定义ORM(下)(7)4动态数据源切换的底层原理这里简单介绍一下
·
2021-12-21 13:45
javaspring源码
30个类手写Spring核心原理之环境准备(1)
本文节选自《
Spring5
核心原理》1IDEA集成Lombok插件1.1安装插件IntelliJIDEA是一款非常优秀的集成开发工具,功能强大,而且插件众多。
·
2021-12-09 15:51
javaspring源码
30个类手写Spring核心原理之环境准备(1)
本文节选自《
Spring5
核心原理》1IDEA集成Lombok插件1.1安装插件IntelliJIDEA是一款非常优秀的集成开发工具,功能强大,而且插件众多。
Tom弹架构
·
2021-12-09 15:00
Spring5
IOC容器解析——注解配置的资源定位、加载、解析、注册分析
AnnotationConfigApplicationContext使用AnnotationConfigApplicationContext可以实现基于Java的配置类(包括各种注解)加载Spring的应用上下文。避免使用application.xml进行配置。相比XML配置,更加便捷。一、被@Configuration标记的Bean的资源定位、加载、解析、注册分析ApplicationConte
小波同学
·
2021-11-29 17:46
你真的知道Spring注解驱动的前世今生吗?这篇文章让你豁然开朗!
本篇文章,从Spring1.x到
Spring5
.x的迭代中,站在现在的角度去思考Spring注解驱动的发展过程,这将有助于我们更好的理解Spring中的注解设计。
·
2021-11-25 12:42
java
你真的知道Spring注解驱动的前世今生吗?这篇文章让你豁然开朗!
本篇文章,从Spring1.x到
Spring5
.x的迭代中,站在现在的角度去思考Spring注解驱动的发展过程,这将有助于我们更好的理解Spring中的注解设计。
跟着Mic学架构
·
2021-11-25 11:00
Spring5
路径匹配器PathPattern解析
目录
Spring5
路径匹配器PathPattern1.PathPattern只支持结尾部分使用**2.PathPattern支持使用例如{*path}路径匹配工具(AntPathMatchervsPathPattern
·
2021-11-24 17:26
Spring5
学习笔记 四 、AOP
原例来源:尚硅谷
Spring5
框架教程(idea版)1、AOP(概念)(1)面向切面编程(方面),利用AOP可以对业务逻辑的各个部分进行隔离,从而使得业务逻辑各部分之间的耦合度降低,提高程序的可重用性,
一个平凡de人
·
2021-11-20 16:49
程序开发
spring
5
spring
java
Spring5
学习笔记 三、IOC 操作 Bean 管理
原例来源:尚硅谷
Spring5
框架教程(idea版)1、(xml注入集合属性)IOC操作Bean管理.注入数组、List集合、Map集合注入数组类型属性注入List集合类型属性注入Map集合类型属性classstupackagecom.company.collectiontype
一个平凡de人
·
2021-11-17 21:21
程序开发
spring
java
18-
Spring5
基于xml配置文件开启事务管理
1.xml配置步骤第一步、配置事务管理器第二步、配置通知第三步、配置切入点和切面2.项目代码bean1.xml配置文件Accountpackagecom.limi.entity;publicclassAccount{privateIntegerid;privateStringuserName;privateDoubleprice;publicAccount(){}publicAccount(Int
鸣鼓ming
·
2021-11-12 22:11
Spring5
xml
java
服务器
关于
spring5
的那些事:@Indexed 解密
目录哪些资源会被索引?如何使用?原理随着云原生的发展,很多技术会被重新掂量,重新定义,历来技术的发展也是遵循天时地利,以其势尽享其利。再云原生下,jdk的最大的问题在于笨重(几百mb),启动慢,而像Serverless架构,NodeJS技术栈可谓更完美。其实在jdk9中倡导模块化本质在于减少JVM的体积,不需要资源(Jar)不用再加载,而启动慢的问题其实也有解决方案GraalVM(一款类似于Hot
·
2021-11-09 10:29
上一页
17
18
19
20
21
22
23
24
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他