目前项目仍然存在缺陷: 1> 在service层控制了事务,service方法中的事务控制代码看着有点别扭,以后能不能不写???? 可以使用动态代理机制解决这个问题。 2> 目前虽然面向接口编程了,但是并没有完全解决对象和对象之间的依赖关系。怎么办?可以使用spring的IoC容器来解决这个问题。 对象的创建我不用管了。 对象和对象之间关系的管理我也不想管了。 都交给spring容器来负责这件事。
-
Notifications
You must be signed in to change notification settings - Fork 0
baishenyi/bank-mvc
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.