testablity的建立.

With that you can test your service object without ever having to connect to the database,which would significantly speed up your unit tests and rule out the chance of a test failure due to inconsistent data.

        --基于IoC的testablity,工作时间长了后,对这个Testablity也有了更多的体会.从JavaBean到IoC,Testablity的意识也逐步建立了起来.可以通过IoC来另组建一个Testing的Configuration.
        --DAO interface.这可能也是Interface在Java世界里用的最光彩的一处,当然这不是说在Java EE别的Layer里Interface用的不好,而在DAO这一块儿,Interface显的更重要.

你可能感兴趣的:(java,DAO,工作,IOC,UP)