整合注意事项 要注意 MyBatis 版本整合 Spring 时使用的适配包; 下载整合适配包 https://github.com/mybatis/spring/releases 官方整合示例, jpetstore https://github.com/mybatis/jpetstore-6 整合思路与步骤 1.搭建环境 创建一个动态的WEB工程 2.导入jar 导入SSM需要的jar包 导入整合适配包 导入其它相关支持包、log4j,pageHelper,AspectJ,jackson,jstl 3.搭建SpringMVC web.xml DispatcherServlet HiddenHttpMethodFilter CharacterEncodingFilter <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp