mybatis
荚小白
后起勃发
展开
-
mybatis概念
官网解释:http://www.mybatis.org/mybatis-3 1.MyBatis is a first class persistence framework with support for custom SQL, stored procedures and advanced mappings. 是什么:MyBatis是一个一流的持久性框架,支持自定义SQL、存储过程和高级...原创 2019-03-06 19:57:12 · 408 阅读 · 0 评论 -
mybatis-config.xml
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <configuration> <!-...原创 2019-03-06 20:49:53 · 425 阅读 · 0 评论 -
mybatis使用
使用过程: 1.编程式 public class Demo { public static SqlSession getSqlSession() throws FileNotFoundException{ //配置文件 InputStream configFile = new FileInputStream("/path/mybatis-config.xml"); Sq...原创 2019-03-06 20:53:40 · 188 阅读 · 0 评论