MyBatis
一款优秀的**持久层(dao)**框架,用于简化JDBC的开发
官网:https://mybatis.org/mybatis-3/zh/index.html
@Mapper // 在运行时,会自动的生成该接口的实现类对象(代理对象),并且将该对象交给IOC容器管理
public interface UserMapper {
// cha'x
@Select("select * from user")
public List<User> list();
}
一款优秀的**持久层(dao)**框架,用于简化JDBC的开发
官网:https://mybatis.org/mybatis-3/zh/index.html
@Mapper // 在运行时,会自动的生成该接口的实现类对象(代理对象),并且将该对象交给IOC容器管理
public interface UserMapper {
// cha'x
@Select("select * from user")
public List<User> list();
}