mybatis接口和實(shí)現(xiàn)類包分離 mybatis接口和xml對(duì)應(yīng) Service層和Dao層真的有必要每個(gè)類都加上接口嗎?這主要取決于您的項(xiàng)目:例如,如果項(xiàng)目中使用了hibernate,以后可能會(huì)切換到mybatis,那么Dao需要使... 2021-03-11 1175次瀏覽