spring boot中使用mybatis的注意点!!! 1 生成的mapper接口上打上注解 2 在pom.xml中需要导入mysql(根据需要),jdbc和mybatis的依赖 3 在主类上设置扫描 4 com.mysql.cj.exceptions等报错是因为时区问题 在配置文件中加入 5 在配置文件中指定mybatis的配置文件位置 classpath*:mapper/**/*.xml 附:项目结构图