- 博客(7)
- 资源 (15)
- 收藏
- 关注
原创 Mocks Aren't Stubs
http://www.martinfowler.com/articles/mocksArentStubs.html mock与stub代表的是不同的unit testing方法(分别是 interaction-based 和state-based)。State-Based Testing一个例子:public class OrderStateTester extends TestCase
2009-07-28 17:06:00 906
原创 Acegi配置文档
Acegi是基于Spring的一个开源的安全认证框架,现在的最新版本是1.04。Acegi的特点就是有很多的过滤器:不过我们也用不到这么多的过滤器,只是可以把它们看作为一个个的模块,在用的时候加上自己用的着的即可,由于认证的流程的方面比较复杂导致它的配置很复杂,如果能摸清它的工作原理还是不太难.下面用比较顺着人思维的流程过一遍 这里只列出常用的过滤器和拦载器 1. 过滤器:HttpSessionC
2009-07-24 10:31:00 566 1
转载 如何在Eclipse中开发Grails项目
http://www.chinagroovy.org/forum/index.php?topic=72.0
2009-07-20 09:44:00 577
原创 Eclipse中安装Extjs插件(Spket IDE)
Spket IDE是目前支持Ext 2.0最为出色的IDE。 它采用.jsb project file 文件并将继承于基类和所有文档的内容嵌入到生成代码提示的Script doc中。由于Spket只是一个单纯的编辑器,没有其它格式的支持(如CSS),所以我的做法是用它的Eclipse插件形式,启动ECLIPSE Help → Software Updates → Find and Instal
2009-07-16 15:15:00 499
原创 Hibernate 自动建表
Look for the property hibernate.hbm2ddl.auto."Automatically export schema DDL to the database when theSessionFactory is created. With create-drop, the database schema willbe dropped when the SessionFa
2009-07-09 09:05:00 543
转载 Real-Time Tracking and Tuning for Busy Tomcat Servers
Learn a technique for configuring your Tomcat servers to handle heavy traffic while determining how appropriate your current configuration is for changing load demands.by Edmon Begoli pache Tomca
2009-07-09 08:37:00 953
转载 使用Spring2.5的Autowired实现注释型的IOC
使用Spring2.5的新特性——Autowired可以实现快速的自动注入,而无需在xml文档里面添加bean的声明,大大减少了xml文档的维护。(偶喜欢这个功能,因为偶对xml不感冒)。 以下是一个例子: 先编写接口Man: public interface Man { public String sayHello()
2009-07-07 10:24:00 568
Manning.Java.Persistence.with.Hibernate.Nov.2006
2007-07-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人