1 在pom文件中导入依赖导入MySQL驱动导入MyBatis集成2 在application-properties中增加Spring配置数据库链接地址3 MyBatis其他的一些配置在mybatis-config.xml中