zw7534313的博客 -凯发k8国际

`
文章列表
   1.基于xml配置的spring aop  2.基于注解配置的aop     aop常用的实现方式有两种,一种是采用声明的方式来实现(基于xml),一种是采用注解的方式来实现(基于aspectj)。 首先复习下aop中一些比较重要的概念: joinpoint� ...
  spring事务的传播特性和隔离级别 所谓事务传播行为就是多个事务方法相互调用时,事务如何在这些方法间传播。spring 支持 7 种事务传播行为:spring 默认的事务传播行为是 propagation_required,它适合于绝大多数的情况。假设 ser ...
  • 2018-03-17 10:09
  • 浏览 482
  • 论坛回复 / (0 / 1653)
  • 分类:编程语言
 
      spring4集成mybatis3: springmvc 组成restful风格的web应用   1.spring jar   2.aspectj jar
  • 2017-10-04 10:10
  • 浏览 423
  • 论坛回复 / (0 / 2172)
  • 分类:开源软件
  quartz2与springmvc集成的2种方式   第一种方式:jobdetail使用methodinvokingjobdetailfactorybean   (1)spring配置
  • 2017-10-04 10:05
  • 浏览 546
  • 论坛回复 / (0 / 2124)
  • 分类:开源软件
     使用spring4 hessian实现远程方法调用        1.hessian-impl  服务端     2.hessian-interface 服务端与客户端公用类     3.hessian-client 客户端调用代码        把hessian-interace打成一个jar包放入hessian-impl类路径下
acegi权限控制:1.配置authenticationprocessingfilter的登陆url: 2.userdetailsserviceimpl.loaduserbyusername(username)   与登陆页面的 一致username 来自于j_use ...
  @repositorypublic interface usermapper { public abstract list select(); }     static void testehcache3(userservice userservice){  testpage(userservice);    userservice.findusers();    testpage(userservice);// ����sql  userservice.findusers(); //使用了缓存,没有打印sql }   methodcacheint ...
   1.测试  applicationcontext app = new classpathxmlapplicationcontext("applicationcontext.xml"); threadpooltaskexecutor pool=(threadpooltaskexecutor)app.getbean("taskexecutor");    testspringthreadpool(pool);   static void testspringthreadpool(threadpooltaskexecut ...
        1. log4j: logutil、log4j.properties  多个文件分模块日志   2. spring4aop编程(注解): 加入aspectjweaver-1.5.3.jar  @aspect 注解 面向切面编程   3. quartz: 定时任务   增加 quartz-2.1.7.jar   
  aop(aspect-oriented programming, 面向切面编程): 是一种新的方法论, 是对传统 oop(object-oriented programming, 面向对象编程) 的补充.   aop 的好处: ---每个事物逻辑位于一个位置, 代码不分散, 便于维护和升级 ---业务模块更简洁, 只包含� ...
   1.log4j               多个文件日志(可配置各模块分日志)  2.ehcache          spring/mybatis/ehcache  3.junit                 注解访问spring容器  
    概述事务管理对于企业应用来说是至关重要的,即使出现异常情况,它也可以保证数据的一致性。spring framework对事务管理提供了一致的抽象,其特点如下: •为不同的事务api提供一致的编程模型,比如jta(java transaction api ...
package service;public interface helloworld { string sayhelloworld(string name);}   package service.impl; import service.helloworld; public class helloworldimpl implements helloworld { public string sayhelloworld(string name) {  string helloworld = "hello," name;  return hello ...
aop嘛,少不了拦截器,先创建一个实现了methodinterceptor接口的拦截器,用来拦截service/dao的方法调用,拦截到方法后,搜索该方法的结果在cache中是否存在,如果存在,返回cache中的缓存结果,如果不存在,返回查询数据库的结果,并将结果缓存到cache中。 java.lang.noclassdeffounderror: edu/emory/mathcs/backport/java/util/concurrent/blockingqueue????  backport-util-concurrent.jar加这个包   error creating bean w ...
global site tag (gtag.js) - google analytics
网站地图