07 2016 档案
spring源码分析之freemarker整合
摘要:FreeMarker是一款模板引擎: 即一种基于模板和要改变的数据, 并用来生成输出文本(HTML网页、电子邮件、配置文件、源代码等)的通用工具。 它不是面向最终用户的,而是一个Java类库,是一款程序员可以嵌入他们所开发产品的组件。 FreeMarker是免费的,基于Apache许可证2.0版本发 阅读全文
posted @ 2016-07-28 10:12 一天不进步,就是退步 阅读(6202) 评论(0) 推荐(0)
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 fi 阅读全文
posted @ 2016-07-27 09:44 一天不进步,就是退步 阅读(2130) 评论(0) 推荐(0)
真正解决问题:maven eclipse tomcat java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener--转
摘要:原文地址:http://www.cnblogs.com/amosli/p/4067665.html 在使用eclipse进行整合springmvc时经常会碰到这样的异常: java.lang.ClassNotFoundException:org.springframework.web.context 阅读全文
posted @ 2016-07-27 09:33 一天不进步,就是退步 阅读(410) 评论(0) 推荐(0)
spring源码分析之cache demo
摘要:spring提供了对echache、guava、jcache的支持,先看一个echache的示例: 其中 echache.xml文件如下: 缓存的使用: 参考文献: 【1】http://www.mkyong.com/spring/spring-caching-and-ehcache-example/ 阅读全文
posted @ 2016-07-22 16:26 一天不进步,就是退步 阅读(1956) 评论(0) 推荐(0)
Spring 4 + Reactor Integration Example--转
摘要:原文地址:http://www.concretepage.com/spring-4/spring-4-reactor-integration-example Reactor is a framework to make event driven programming much easier. Th 阅读全文
posted @ 2016-07-21 09:25 一天不进步,就是退步 阅读(2150) 评论(0) 推荐(0)
@Async in Spring--转
摘要:原文地址:http://www.baeldung.com/spring-async 1. Overview In this article we’ll explore the asynchronous execution support in Spring – and the @Async anno 阅读全文
posted @ 2016-07-19 17:32 一天不进步,就是退步 阅读(1452) 评论(0) 推荐(0)
spring源码分析之定时任务概述
摘要:Spring框架提供了TaskExcutor的异步执行和TashScheduler的任务定时执行接口,同样spring也提供了线程池或者CommonJ的代理。 TaskExecutor的类型 SimpleAsyncTaskExecutor,没有复用线程,当触发时仅仅启动一个新的线程。支持并发。 Sy 阅读全文
posted @ 2016-07-19 08:53 一天不进步,就是退步 阅读(2521) 评论(0) 推荐(0)
GitHub上那些值得一试的JAVA开源库--转
摘要:原文地址:http://www.jianshu.com/p/ad40e6dd3789 作为一名程序员,你几乎每天都会使用到GitHub上的那些著名Java第三方库,比如Apache Commons,Spring,Hibernate等等。除了这些,你可能还会fork或Star一些其他的开源库,但Git 阅读全文
posted @ 2016-07-18 14:08 一天不进步,就是退步 阅读(2382) 评论(0) 推荐(0)
spring源码分析之定时任务Scheduled注解
摘要:1. @Scheduled 可以将一个方法标识为可定时执行的。但必须指明cron(),fixedDelay(),或者fixedRate()属性。 注解的方法必须是无输入参数并返回空类型void的。 @Scheduled注解由注册的ScheduledAnnotationBeanPostProcesso 阅读全文
posted @ 2016-07-18 09:32 一天不进步,就是退步 阅读(16268) 评论(0) 推荐(0)
spring源码分析之spring-core-env
摘要:看一下源码整体: 抓住主要点,Environment、PropertyResolver、PropertySource,其结构如下: 其中, Environment:Interface representing the environment in which the current applicat 阅读全文
posted @ 2016-07-15 15:25 一天不进步,就是退步 阅读(475) 评论(0) 推荐(0)
微服务实战(二):使用API Gateway--转
摘要:原文地址:http://dockone.io/article/482 【编者的话】本系列的第一篇介绍了微服务架构模式。它讨论了采用微服务的优点和缺点,除了一些复杂的微服务,这种模式还是复杂应用的理想选择。当你决定将应用作为一组微服务时,需要决定应用客户端如何与微服务交互。在单体式程序中,通常只有一组 阅读全文
posted @ 2016-07-15 10:59 一天不进步,就是退步 阅读(6143) 评论(2) 推荐(0)
spring websocket源码分析续Handler的使用
摘要:1. handler的定义 spring websocket支持的消息有以下几种: 对消息的处理就使用了Handler模式,抽象handler类AbstractWebSocketHandler.java 具体实现handler类BinaryWebSocketHandler(为例,其它略) 2.han 阅读全文
posted @ 2016-07-15 10:24 一天不进步,就是退步 阅读(12524) 评论(0) 推荐(0)
Java 线程池框架核心代码分析--转
摘要:原文地址:http://www.codeceo.com/article/java-thread-pool-kernal.html 前言 多线程编程中,为每个任务分配一个线程是不现实的,线程创建的开销和资源消耗都是很高的。线程池应运而生,成为我们管理线程的利器。Java 通过Executor接口,提供 阅读全文
posted @ 2016-07-14 16:54 一天不进步,就是退步 阅读(652) 评论(0) 推荐(0)
ANNOTATION PROCESSING 101 by Hannes Dorfmann — 10 Jan 2015
摘要:原文地址:http://hannesdorfmann.com/annotation-processing/annotationprocessing101 In this blog entry I would like to explain how to write an annotation pro 阅读全文
posted @ 2016-07-14 16:41 一天不进步,就是退步 阅读(297) 评论(0) 推荐(0)
spring源码分析之spring-core-io
摘要:1. 看一下源码整体结构: 抓住主要点Resource、ResourceLoader和ResourceEditor 其中Resource作用 Interface for a resource descriptor that abstracts from the actual type of unde 阅读全文
posted @ 2016-07-11 16:54 一天不进步,就是退步 阅读(682) 评论(0) 推荐(0)
mysql replication principle--转
摘要:原文地址:http://www.codeweblog.com/mysql-replication-principle/ 1, the replication process Mysql replication (replication) is an asynchronous replication, 阅读全文
posted @ 2016-07-08 17:36 一天不进步,就是退步 阅读(478) 评论(0) 推荐(0)
cglib源码分析--转
摘要:原文地址:http://www.iteye.com/topic/799827 背景 前段时间在工作中,包括一些代码阅读过程中,spring aop经常性的会看到cglib中的相关内容,包括BeanCopier,BulkBean,Enancher等内容,以前虽大致知道一些内容,原理是通过bytecod 阅读全文
posted @ 2016-07-08 17:22 一天不进步,就是退步 阅读(2990) 评论(0) 推荐(0)
spring源码分析之spring-core asm概述
摘要:ASM是什么? ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify existing classes or dynamically generate cla 阅读全文
posted @ 2016-07-08 09:02 一天不进步,就是退步 阅读(7823) 评论(0) 推荐(0)
如何用UE(UltraEdit)删除重复行?--转
摘要:原文地址:https://www.zhengjie.com/question/bb148773 使用UE(UltraEdit)的高级排序功能就可以删除掉所有的重复行。 操作步骤 1、文件—排序(R)—高级排序/选项(A)。 2、在弹出的“高级排序/选项”对话框中勾选“删除重复项”—根据自己的需要选择 阅读全文
posted @ 2016-07-08 08:36 一天不进步,就是退步 阅读(24107) 评论(0) 推荐(1)
spring源码分析之<context:component-scan/>vs<annotation-config/>
摘要:1.<context:annotation-config/> xsd中说明: 解析发生在在解析xml文件中,解析类为:AnnotationConfigBeanDefinitionParser.java 2.<context:component-scan/> 注意:红色的一行中,说明<context: 阅读全文
posted @ 2016-07-06 10:42 一天不进步,就是退步 阅读(1933) 评论(0) 推荐(1)
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 mo 阅读全文
posted @ 2016-07-06 09:59 一天不进步,就是退步 阅读(291) 评论(0) 推荐(0)
spring源码分析之spring注解@Aspect是如何工作的?
摘要:1、@Aspect 在xml定义:<aop:aspectj-autoproxy />,其定义在http://www.springframework.org/schema/aop/spring-aop-3.0.xsd 1.1 注册 的继承关系如下: 1.2 解析过程 AspectJAutoProxyB 阅读全文
posted @ 2016-07-05 18:20 一天不进步,就是退步 阅读(4078) 评论(0) 推荐(0)
Spring之LoadTimeWeaver——一个需求引发的思考---转
摘要:原文地址:http://www.myexception.cn/software-architecture-design/602651.html Spring之LoadTimeWeaver——一个需求引发的思考 最近有个需求——记录应用中某些接口被调用的轨迹,说白了,记录下入参、出参等即可。 我选用A 阅读全文
posted @ 2016-07-01 16:43 一天不进步,就是退步 阅读(4477) 评论(0) 推荐(3)
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. App 阅读全文
posted @ 2016-07-01 16:37 一天不进步,就是退步 阅读(3504) 评论(0) 推荐(1)
spring bean生命周期管理--转
摘要:Life Cycle Management of a Spring Bean 原文地址:http://javabeat.net/life-cycle-management-of-a-spring-bean/ 1) Introduction This article would brief about 阅读全文
posted @ 2016-07-01 14:00 一天不进步,就是退步 阅读(1294) 评论(1) 推荐(0)