摘要: 在Web应用中,Spring容器通常采用声明式方式配置产生:开发者只要在web.xml中配置一个Listener,该Listener将会负责初始化Spring容器,MVC框架可以直接调用Spring容器中的Bean,无需访问Spring容器本身。在这种情况下,容器中的Bean处于容器管理下,无需主动 阅读全文
posted @ 2018-06-12 13:07 a-du 阅读(303) 评论(0) 推荐(0) 编辑
摘要: Elasticsearch JAVA操作有三种客户端: 1、TransportClient 2、JestClient 3、RestClient 还有种是2.3中有的NodeClient,在5.5.1中好像没有了。还有种是spring-data-elasticsearch,这里先以TransportC 阅读全文
posted @ 2018-06-12 11:34 a-du 阅读(5206) 评论(0) 推荐(0) 编辑
摘要: AOP AOP(Aspect Oriented Programming),即面向切面编程,可以说是OOP(Object Oriented Programming,面向对象编程)的补充和完善。OOP引入封装、继承、多态等概念来建立一种对象层次结构,用于模拟公共行为的一个集合。不过OOP允许开发者定义纵 阅读全文
posted @ 2018-06-12 10:17 a-du 阅读(4629) 评论(1) 推荐(1) 编辑