Besides ApplicationContextAware and BeanNameAware (discussed earlier), Spring offers a wide range of Aware callback interfaces that let beans indicate to the container that they require a certain infrastructure de ...
阅读全文从Spring-core-5.1.9.RELEASE.jar中分析Spring的IoC和AOP技术实现依赖。 从下图中可以看到有三个第三方lib被repack到spring-core中来,分别是asm, cglib,和 objenesis. asm主要用在支持aspectJ的AOP,cglib主要用来实现的类的动态代理,从而进一步实现AOP,objenesis用来类的实例化。 IoC的实现主要靠java的反射机制来实现,结合了Annotation和XML来 ...
阅读全文JDK代理要求被代理的类必须实现接口,有很强的局限性。而CGLIB动态代理则没有此类强制性要求。简单的说,CGLIB会让生成的代理类继承被代理类,并在代理类中对代理方法进行强化处理(前置处理、后置处理等)。在CGLIB底层,其实是借助了ASM这个非常强大的Java字节码生成框架。 使用CGLib实现动态代理,完全不受代理类必须实现接口的限制,而且CGLib底层采用ASM字节码生成框架,使用字节码技术生成代理类,比使用Java反射效率要高。唯一需要注意的是,CGLib不能对声明为final的 ...
阅读全文Let us begin by defining some central AOP concepts and terminology. These terms are not Spring-specific... unfortunately, AOP terminology is not particularly intuitive; however, it would be even more confusing if Spring used its own terminology. ...
阅读全文官方文档<<The AspectJTM Programming Guide>>: https://www.eclipse.org/aspectj/doc/released/progguide/index.html 简介: AspectJ 通过将联接点(join points)的概念叠加到现有的 Java 语义上,并将一些新的程序元素添加到 Java,从而扩展了 Java: 连接点(join points)是程序执行中定义的 ...
阅读全文在spring boot 中使用annotation 配置web.xml中的信息时,不用担心RequestMapping的Url pattern重复,因为在启动 server的时候就会初始化RequestMappingHandlerMapping,会自动检测是否有重复的url mapping. 比如下面的异常就是因为有重复的url mapping: /{version}/hello org.springframework.beans.factory.BeanCrea ...
阅读全文DOM Ready Jquery $(document).ready(function(){ // Code }); YUI Y.on("domready", function(e){ // Code }); 选择器支持 <div class=&qu ...
阅读全文Spring configuration property的优先级官方说明:https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-external-config Externalized Configuration Spring Boot lets you externalize your configuration so that you can ...
阅读全文翻看了这本大数据书籍,做个摘要。 本书分为三部分分。 理论篇:重点介绍大数据时代下数据处理的基本理论及相关处理技术,并引入NoSQL数据库; 系统篇:介绍了各种类型NoSQL数据库基本知识; 应用篇:对中外知名企业在利用NoSQL数据库在处理海量数据方面的应用做了阐述。 本书对大数据时代面临的挑战,以及NoSQL数据库的基本知识做了清晰的阐述,有助于帮助读者整理思路,了解需求,并更有针对、有选择地深入学习相关知识。 第1章 概论 ...
阅读全文Scrum不是一个标准化的过程。 但是Scrum框架建立了一套价值观,原则和实践。每个组织可以根据自身情况相结合使用。 Scrum实践有: 三个角色 PO:管理经济效率,梳理产品列表,定义接收标准并验收,正确理解技术债经济,版本层面的经济考量,sprint和PBI的经济考量。 Team:自管理自组织,跨智能的多样化和全面化,T型技能,火枪手态度,沟通广泛,透明沟通,规模适中,专注,有责任感,人员稳定,工作步调可持续。 Scrum Master:教练 ...
阅读全文Phrasal verbs Phrasal verbs - 动词词组 某些动词与特定的介词相搭配,就会具有完全不同于动词本意的新意思。这些动词和介词的组合就叫做动词词组。 例如: I ran for two hours last night. (我昨天晚上跑了两个小时。) I ran into a friend last night. ...
阅读全文Phrasal verbs Phrasal verbs - 动词词组 某些动词与特定的介词相搭配,就会具有完全不同于动词本意的新意思。这些动词和介词的组合就叫做动词词组。 例如: I ran for two hours last night. (我昨天晚上跑了两个小时。) I ran into a friend last night. ...
阅读全文Prepositions Prepositions - 介词 介词可以与动词、名词或形容词连用,许多情况下,介词的用法需要单独记忆: from from next door (从隔壁) from my friend (从我的朋友那儿) of of gold (金质的) of the ci ...
阅读全文NYSE, NASDAQ Vocabulary: 熊市:bear 牛市: bull 股票: share 保证金,债券: security 交易所: exchange 经纪人: broker 商品: commodity 货币: currency 期货: feature 股息,红利: dividend 债券: bond 股票,股份: share 买卖的特权,选择权: option 普通股:common stock 优先股: preferred stock 派生 ...
阅读全文English words and sentences are used in Software development & service management. When developing cloud-based software, it is necessary to build in extra security during the software development lifecycle in order to reduce the ch ...
阅读全文《Live Coding #1 - Spring Cloud Eureka using Microservices - Example | Tech Primers Live Stream》:https://www.youtube.com/watch?v=rlS9eH5tEnY 《Designing Microservices using Spring Boot, Spring Cloud, Eureka and Zuul | #2 | Tech ...
阅读全文本文为https://docs.spring.io/spring/docs/current/spring-framework-reference/core.htmlSpring学习过程中遇到的知识点 先记录后深入学习 Annotations 1. Java-based configuration 中提到了 @Configuration @Bean @Import @DependsOn Resource Int ...
阅读全文本文为spring cloud学习笔记,官方文档:https://cloud.spring.io/spring-cloud-static/Greenwich.SR1/ 官方文档内容比较多,大体分为下面几大部分: Cloud Native Applications Spring Cloud Context: Application Context Services Spring Cloud Commons: Common Abstractions ...
阅读全文1. 这个Docker视频demo了一个Docker的应用场景: https://www.youtube.com/watch?v=YFl2mCHdv24 2. <<Kubernetes for Beginners - Docker Introduction>> 这个视频非错不错的解释了Docker解决的痛点以及其架构。 https://www.youtube.com/watch?v=rmf04ylI2K0 3. 《Introduction to Ku ...
阅读全文1. 这个Docker视频demo了一个Docker的应用场景: https://www.youtube.com/watch?v=YFl2mCHdv24 ...
阅读全文