Mybatis使用注解开发与简单CRUD
Mybatis使用注解开发1.使用注解开发注解在接口上实现,不需要UserMapper.xml@Select("select * from user")List<User> getUsers();在核心配置文件中绑定接口<mappers> <mapper class="com.jy.dao.UserMapper"/></mappers>测试@Testpublic void getUserTest() { Sq
复制链接