一、使用mybatisX插件 1.在idea中安装mybatisX 2.使用idea右侧数据库连接上数据库 3.选择表右键选择mybatisX 4.配置mybatisX 二、Controller类编写CRUD接口