對MVC的深刻理解

實際項目中的MVC 在實際的項目中我們一般會進行這樣的分層         model  : entity,service,serviceImpl,dao,daoImpl(這裏在service,dao層添加一層接口可以實現一定程度上的解耦,配合上spring的ioc效果更爲明顯。提倡大家接口式編程,這樣可以解耦。)         controller: controller         vi
相關文章
相關標籤/搜索