如图:
1:整个流程图:
注意:spring会贯穿整个过程,
spring会帮action把service注入到action中(action访问spring)去,会帮service把dao注入到service中去,还会对service进行声明式的事务管理。