摘要:
作用:通过properties属性来实现应用配置文件 <property name="driver" value="com.mysql.cj.jdbc.Driver"/> <property name="url" value="jdbc:mysql://localhost:3306/mybatis? 阅读全文
摘要:
1.核心配置文件 Mybatis-config.xml (配置) properties(属性) settings(设置) typeAliases(类型别名) typeHandlers(类型处理器) objectFactory(对象工厂) plugins(插件) environments(环境配置) 阅读全文
摘要:
1.接口配置文件相关细节(xxMapper.xml) namespace:绑定这对应接口 <mapper namespace="com.king.dao.UserMapper"> id:对应接口的方法 resultType:返回值类型 <select id="getUserList" resultT 阅读全文