zw7534313
- 浏览: 1236808 次
- 性别:
- 来自: 北京
社区版块
- ( 0)
- ( 21)
- ( 1)
最新评论
-
mike_eclipse:
hashtable是线程不安全的吗?好像是线程安全的吧?
多线程之集合类 -
july01:
推荐用stratoio打印控件,浏览器和系统的兼容性都很好,而 ...
lodop打印控件 -
xingcxb:
经过测试,假的,依旧会出现中文乱码!!!!store方法里面采 ...
java 读写properties文件,不会出现中文乱码 -
tiger20111989:
...
spring注解方式管理事务 -
zw7534313:
...
js 文字上下滚动 无间断循环显示
文章列表
- 博客分类:
- spring4
1.基于xml配置的spring aop
2.基于注解配置的aop
aop常用的实现方式有两种,一种是采用声明的方式来实现(基于xml),一种是采用注解的方式来实现(基于aspectj)。
首先复习下aop中一些比较重要的概念:
joinpoint� ...
- 2018-03-29 07:16
- 浏览 296
- 分类:编程语言
- 博客分类:
- spring4
spring事务的传播特性和隔离级别
所谓事务传播行为就是多个事务方法相互调用时,事务如何在这些方法间传播。spring 支持 7 种事务传播行为:spring 默认的事务传播行为是 propagation_required,它适合于绝大多数的情况。假设 ser ...
- 2018-03-17 10:09
- 浏览 482
- 论坛回复 / (0 / 1653)
- 分类:编程语言
- 博客分类:
- spring4
spring4集成mybatis3: springmvc 组成restful风格的web应用
1.spring jar
2.aspectj jar
- 2017-10-04 10:10
- 浏览 423
- 论坛回复 / (0 / 2172)
- 分类:开源软件
- 博客分类:
- spring4
quartz2与springmvc集成的2种方式
第一种方式:jobdetail使用methodinvokingjobdetailfactorybean
(1)spring配置
- 2017-10-04 10:05
- 浏览 546
- 论坛回复 / (0 / 2124)
- 分类:开源软件
- 博客分类:
- spring4
使用spring4 hessian实现远程方法调用
1.hessian-impl 服务端
2.hessian-interface 服务端与客户端公用类
3.hessian-client 客户端调用代码
把hessian-interace打成一个jar包放入hessian-impl类路径下
- 2015-09-02 21:26
- 浏览 761
- 分类:编程语言
- 博客分类:
- spring4
acegi权限控制:1.配置authenticationprocessingfilter的登陆url: 2.userdetailsserviceimpl.loaduserbyusername(username) 与登陆页面的 一致username 来自于j_use ...
- 2015-07-04 17:33
- 浏览 1068
- 分类:编程语言
- 博客分类:
- spring4
@repositorypublic interface usermapper {
public abstract list select();
}
static void testehcache3(userservice userservice){ testpage(userservice); userservice.findusers(); testpage(userservice);// ����sql userservice.findusers(); //使用了缓存,没有打印sql }
methodcacheint ...
- 2015-07-02 10:16
- 浏览 729
- 分类:编程语言
- 博客分类:
- spring4
1.测试
applicationcontext app = new classpathxmlapplicationcontext("applicationcontext.xml");
threadpooltaskexecutor pool=(threadpooltaskexecutor)app.getbean("taskexecutor"); testspringthreadpool(pool);
static void testspringthreadpool(threadpooltaskexecut ...
- 2015-06-30 09:56
- 浏览 2252
- 分类:编程语言
1. log4j: logutil、log4j.properties 多个文件分模块日志 2. spring4aop编程(注解): 加入aspectjweaver-1.5.3.jar @aspect 注解 面向切面编程 3. quartz: 定时任务 增加 quartz-2.1.7.jar
- 博客分类:
- spring4
aop(aspect-oriented programming, 面向切面编程): 是一种新的方法论, 是对传统 oop(object-oriented programming, 面向对象编程) 的补充.
aop 的好处:
---每个事物逻辑位于一个位置, 代码不分散, 便于维护和升级
---业务模块更简洁, 只包含� ...
- 2015-06-22 14:01
- 浏览 1586
- 分类:编程语言
- 博客分类:
- spring4
1.log4j 多个文件日志(可配置各模块分日志)
2.ehcache spring/mybatis/ehcache
3.junit 注解访问spring容器
- 2015-06-22 09:35
- 浏览 705
- 分类:编程语言
概述事务管理对于企业应用来说是至关重要的,即使出现异常情况,它也可以保证数据的一致性。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 ...
- 2009-12-14 11:09
- 浏览 1197
- 分类:编程语言
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 ...
- 2009-07-01 09:45
- 浏览 2342
- 分类:编程语言