摘要: 第6章Spring与Web 在 Web 项目中使用 Spring 框架,首先要解决在 web 层(这里指 Servlet)中获取到 Spring 容器的问题。只要在 web 层获取到了 Spring 容器,便可从容器中获取到 Service 对象。 1. Web 项目使用 Spring 的问题(了解 阅读全文
posted @ 2022-11-13 10:28 a-tao必须奥利给 阅读(84) 评论(0) 推荐(0)
摘要: 第5章Spring 事务(测试)-Spring的事务注解(小项目中),AspectJ的AOP配置管理事务(大项目中) ==spring框架中提供的事务处理方案== 适合中小项目使用的, 注解方案。 1.适合中小项目使用的, 注解方案。 spring框架自己用aop实现给业务方法增加事务的功能, 使用 阅读全文
posted @ 2022-11-13 00:11 a-tao必须奥利给 阅读(140) 评论(0) 推荐(0)