DaozeroreducesDAOcodesbasedoSprig&iBatis.TheoldwayistowritecodesadivokeiBatisAPIexplicitly,butdaozeroimplemetsDAOiterfacesirutime,ivokesiBatisAPIfordevelopersatuomaticaly.ReplaceoldDAOswithitdirectly.
Daozero减少了基于Sprig和iBatis的DAO代码。过去的方法是编写代码并显式调用iBatisAPI,但是Dao-zero在运行时实现DAO接口,并为开发人员自动调用iBatisAPI。直接用它替换旧的DAO。







评论