SSM 整合
整合后文件 配置文件: 1. spring与mybatis配置文件:applicatonContext.xml 导入数据库配置文件 配置数据源信息 配置事务管理器 开启事务注解 配置 mybatis 的 sqlSessionFactoryBean 配置 mapper 扫描器 扫描 service 文件 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.springframework.org/schema/beans" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xmlns:aop="http://www.springframework.org/schema/aop" 5 xmlns:context="http://www.springframework.org/schema/context" 6 xmlns:tx="http://www.springframework.org/schema/tx" 7 xsi:schemaLocation="http://www.springframework.org/schema/beans 8 http://www.springframework.org/schema/beans