File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 51
51
<source ><![CDATA[
52
52
String resource = "org/mybatis/example/mybatis-config.xml";
53
53
InputStream inputStream = Resources.getResourceAsStream(resource);
54
- sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);]]> </source >
54
+ SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);]]> </source >
55
55
<p >
56
56
El fichero de configuración XML contiene la configuración del
57
57
<i >core</i >
Original file line number Diff line number Diff line change 47
47
<source ><![CDATA[
48
48
String resource = "org/mybatis/example/mybatis-config.xml";
49
49
InputStream inputStream = Resources.getResourceAsStream(resource);
50
- sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);]]> </source >
50
+ SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);]]> </source >
51
51
<p >
52
52
Le fichier de configuration XML contient les réglages pour le noyeau de
53
53
MyBatis, y compris une DataSource pour obtenir les connections vers la
Original file line number Diff line number Diff line change 43
43
<source ><![CDATA[
44
44
String resource = "org/mybatis/example/mybatis-config.xml";
45
45
InputStream inputStream = Resources.getResourceAsStream(resource);
46
- sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);]]> </source >
46
+ SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);]]> </source >
47
47
<p >
48
48
XML 形式の設定ファイルには、MyBatis システムの基本設定が含まれます。
49
49
例えば、データベースから Connection のインスタンスを取得する DataSource や、トランザクションの制御方法を決定する TransactionManager などです。<br />
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ SqlSessionFactoryBuilder 를 사용하여 만들수 있다. SqlSessionFactoryBui
39
39
<source ><![CDATA[
40
40
String resource = "org/mybatis/example/mybatis-config.xml";
41
41
InputStream inputStream = Resources.getResourceAsStream(resource);
42
- sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);]]> </source >
42
+ SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);]]> </source >
43
43
<p >XML 설정파일에서 지정하는 MyBatis 의 핵심이 되는 설정은 트랜잭션을 제어하기 위한 TransactionManager 과 함께
44
44
데이터베이스 Connection 인스턴스를 가져오기 위한 DataSource 를 포함한다. 세부적인 설정은 조금 뒤에 보고 간단한
45
45
예제를 먼저보자.</p >
Original file line number Diff line number Diff line change 54
54
<source ><![CDATA[
55
55
String resource = "org/mybatis/example/mybatis-config.xml";
56
56
InputStream inputStream = Resources.getResourceAsStream(resource);
57
- sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);]]> </source >
57
+ SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);]]> </source >
58
58
<p >
59
59
The configuration XML file contains settings for the core of the
60
60
MyBatis system, including a DataSource for acquiring database
You can’t perform that action at this time.
0 commit comments