自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(25)
  • 收藏
  • 关注

转载 spring源码分析之freemarker整合

  FreeMarker是一款模板引擎: 即一种基于模板和要改变的数据, 并用来生成输出文本(HTML网页、电子邮件、配置文件、源代码等)的通用工具。 它不是面向最终用户的,而是一个Java类库,是一款程序员可以嵌入他们所开发产品的组件。  FreeMarker是免费的,基于Apache许可证2.0版本发布。其模板编写为FreeMarker Template Language(FTL),...

2016-07-28 10:12:00 78

转载 publishing failed with multiple errors resource is out of sync with the file system--转

原文地址:http://blog.csdn.net/feng1603/article/details/7398266今天用eclipse部署项目遇到"publishing failed with multiple errors resource is out of sync with the file system"据说是因为在eclipse外部编辑保存文件后导致的, 在项...

2016-07-27 09:44:00 56

转载 真正解决问题:maven eclipse tomcat java.lang.ClassNotFoundException: org.springframework.web.context.Contex...

原文地址:http://www.cnblogs.com/amosli/p/4067665.html在使用eclipse进行整合springmvc时经常会碰到这样的异常:java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener这时里的意思是说找不到jar包,如果使用...

2016-07-27 09:33:00 317

转载 spring源码分析之cache demo

spring提供了对echache、guava、jcache的支持,先看一个echache的示例:import org.springframework.cache.CacheManager;import org.springframework.cache.annotation.EnableCaching;import org.springframework.cache.e...

2016-07-22 16:26:00 94

转载 Spring 4 + Reactor Integration Example--转

原文地址:http://www.concretepage.com/spring-4/spring-4-reactor-integration-exampleReactor is a framework to make event driven programming much easier. This is based on Reactor Design Pattern. React...

2016-07-21 09:25:00 121

转载 @Async in Spring--转

原文地址:http://www.baeldung.com/spring-async1. OverviewIn this article we’ll explore theasynchronous execution support in Spring– and the@Asyncannotation.Simply put – annotating a method o...

2016-07-19 17:32:00 109

转载 spring源码分析之定时任务概述

Spring框架提供了TaskExcutor的异步执行和TashScheduler的任务定时执行接口,同样spring也提供了线程池或者CommonJ的代理。TaskExecutor的类型SimpleAsyncTaskExecutor,没有复用线程,当触发时仅仅启动一个新的线程。支持并发。SyncTaskExecutor,同步触发,主要用来不需要多线程的情况,例如测试用例...

2016-07-19 08:53:00 59

转载 GitHub上那些值得一试的JAVA开源库--转

原文地址:http://www.jianshu.com/p/ad40e6dd3789作为一名程序员,你几乎每天都会使用到GitHub上的那些著名Java第三方库,比如Apache Commons,Spring,Hibernate等等。除了这些,你可能还会fork或Star一些其他的开源库,但GitHub上的库实在太多了,以至于对于个人来说,你很难有时间去发现并了解那些不断加入的新库,...

2016-07-18 14:08:00 102

转载 spring源码分析之定时任务Scheduled注解

1. @Scheduled 可以将一个方法标识为可定时执行的。但必须指明cron(),fixedDelay(),或者fixedRate()属性。注解的方法必须是无输入参数并返回空类型void的。@Scheduled注解由注册的ScheduledAnnotationBeanPostProcessor来处理,该processor可以通过手动来注册,更方面的方式是通过<task:...

2016-07-18 09:32:00 147

转载 spring源码分析之spring-core-env

看一下源码整体:抓住主要点,Environment、PropertyResolver、PropertySource,其结构如下:其中,Environment:Interface representing the environment in which the current application is running.PropertyResolver:...

2016-07-15 15:25:00 107

转载 微服务实战(二):使用API Gateway--转

原文地址:http://dockone.io/article/482【编者的话】本系列的第一篇介绍了微服务架构模式。它讨论了采用微服务的优点和缺点,除了一些复杂的微服务,这种模式还是复杂应用的理想选择。当你决定将应用作为一组微服务时,需要决定应用客户端如何与微服务交互。在单体式程序中,通常只有一组冗余的或者负载均衡的服务提供点。在微服务架构中,每一个微服务暴露一组细粒度的服务提供点。...

2016-07-15 10:59:00 100

转载 spring websocket源码分析续Handler的使用

1. handler的定义spring websocket支持的消息有以下几种:对消息的处理就使用了Handler模式,抽象handler类AbstractWebSocketHandler.java@Override public void handleMessage(WebSocketSession session, WebSocketMessage&lt...

2016-07-15 10:24:00 452

转载 Java 线程池框架核心代码分析--转

原文地址:http://www.codeceo.com/article/java-thread-pool-kernal.html前言多线程编程中,为每个任务分配一个线程是不现实的,线程创建的开销和资源消耗都是很高的。线程池应运而生,成为我们管理线程的利器。Java 通过Executor接口,提供了一种标准的方法将任务的提交过程和执行过程解耦开来,并用Runnable表示任务。...

2016-07-14 16:54:00 101

转载 ANNOTATION PROCESSING 101 by Hannes Dorfmann — 10 Jan 2015

原文地址:http://hannesdorfmann.com/annotation-processing/annotationprocessing101Inthis blog entry I would like to explain how to write an annotation processor. So here is my tutorial. First, I am...

2016-07-14 16:41:00 161

转载 spring源码分析之spring-core-io

1. 看一下源码整体结构:抓住主要点Resource、ResourceLoader和ResourceEditor其中Resource作用Interface for a resource descriptor that abstracts from the actualtype of underlying resource, such as a file or cl...

2016-07-11 16:54:00 110

转载 mysql replication principle--转

原文地址:http://www.codeweblog.com/mysql-replication-principle/1, the replication processMysql replication (replication) is an asynchronous replication, from a Mysql instace (called Master) to ano...

2016-07-08 17:36:00 120

转载 cglib源码分析--转

原文地址:http://www.iteye.com/topic/799827背景 前段时间在工作中,包括一些代码阅读过程中,spring aop经常性的会看到cglib中的相关内容,包括BeanCopier,BulkBean,Enancher等内容,以前虽大致知道一些内容,原理是通过bytecode,但没具体深入代码研究,只知其所用不知其所以然,所以就特地花了半天多的工作时...

2016-07-08 17:22:00 96

转载 spring源码分析之spring-core asm概述

ASM是什么?ASMis an all purpose Java bytecode manipulation and analysis framework. It can be used to modify existing classes or dynamically generate classes, directly in binary form. Provided comm...

2016-07-08 09:02:00 193

转载 如何用UE(UltraEdit)删除重复行?--转

原文地址:https://www.zhengjie.com/question/bb148773使用UE(UltraEdit)的高级排序功能就可以删除掉所有的重复行。操作步骤1、文件—排序(R)—高级排序/选项(A)。2、在弹出的“高级排序/选项”对话框中勾选“删除重复项”—根据自己的需要选择升序或降序—点击“排序”按钮。3、高级排序后的结果,已经将...

2016-07-08 08:36:00 251

转载 spring源码分析之<context:component-scan/>vs<annotation-config/>

1.<context:annotation-config/>xsd中说明:<xsd:element name="annotation-config"><xsd:annotation><xsd:documentation><![CDATA[Activates various annotations to be...

2016-07-06 10:42:00 107

转载 annotation-config vs component-scan – Spring Core--转

原文地址:http://techidiocy.com/annotation-config-vs-component-scan-spring-core/<context:annotation-config> and <context:component-scan> are two of the most basic concepts available in t...

2016-07-06 09:59:00 62

转载 spring源码分析之spring注解@Aspect是如何工作的?

1、@Aspect 在xml定义:<aop:aspectj-autoproxy />,其定义在http://www.springframework.org/schema/aop/spring-aop-3.0.xsd- <xsd:element name="aspectj-autoproxy">- <xsd:annotation>...

2016-07-05 18:20:00 85

转载 Spring之LoadTimeWeaver——一个需求引发的思考---转

原文地址:http://www.myexception.cn/software-architecture-design/602651.htmlSpring之LoadTimeWeaver——一个需求引发的思考最近有个需求——记录应用中某些接口被调用的轨迹,说白了,记录下入参、出参等即可。我选用ApsectJ解决这个问题,前期讨论说在接口层埋点,但这样有个问题,代码侵入比较...

2016-07-01 16:43:00 88

转载 spring 源码分析之BeanPostProcessor

1.官方解答:Factory hook that allows for custom modification of new bean instances, e.g. checking for marker interfaces or wrapping them with proxies.ApplicationContexts can autodetect BeanPostPro...

2016-07-01 16:37:00 195

转载 spring bean生命周期管理--转

Life Cycle Management of a Spring Bean原文地址:http://javabeat.net/life-cycle-management-of-a-spring-bean/1) IntroductionThis article would brief about how aSpring Beanis managed ...

2016-07-01 14:00:00 115

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除