file->new project->下一步 选择java版本 选择Web中的Spring Web 选择JDBC API,MyBatis Framework,MySQL Driver。 配置maven,配置好会底下会有弹窗,选择自动导入。 添加yml配置文件 # mysql spring