1.引依赖 pom.xml


2.分层 跟MyBatis步骤一样
dao service entity servlet util

3.mybatis-config.xml小配置

链接数据库
jdbc.properties

4.将webapp下的index.jsp后缀名改为ftl

index.ftl


5.WEB-INF下web.xml配置



执行tomcat
完。。。。。。。。。。。。。。。。。。。。。。。。
原文:http://www.cnblogs.com/yfyfyff/p/7692307.html