1. 将xml映射文件注释 2. 在mapper层上打上注解 、 3. 在mapper接口上写上@Select注解里面写sql语句 4. @Param是占位符如 5. 方法调用没有什么变化,只有sql写在了mapper接口上