-
public SqlSession getSqlSession(){ //通過配置文件獲取數據連接信息 Reader reader= Resources.getResourceAsReader("com/imooc/config/Configuration.xml") //通過配置信息構建一個SqlSessionFactory SqlSessionFactory sqlfactory = new SqlSessionFactoryBuilder.build(reader); //通過sqlSessionFactory打開一個數據庫會話 SqlSession sqlSession = sqlfactory.openSession(); return sqlSession; }查看全部
-
在配置文件中一些常用標簽以及功能查看全部
-
mybatis常用標簽查看全部
-
常用標簽查看全部
-
mybatis的ognl表達式查看全部
-
mybatis標簽查看全部
-
案例分析查看全部
-
顯示頁面配置查看全部
-
OGNL查看全部
-
log4j 配置查看全部
-
OGNl查看全部
-
OGNL查看全部
-
Configuration.xml查看全部
-
SQLSession的獲取查看全部
-
Mybatis之SqlSession查看全部
舉報
0/150
提交
取消