We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9547f04 + 46d70fe commit 2db4338Copy full SHA for 2db4338
src/site/zh/xdoc/getting-started.xml
@@ -46,7 +46,7 @@
46
<source><![CDATA[
47
String resource = "org/mybatis/example/mybatis-config.xml";
48
InputStream inputStream = Resources.getResourceAsStream(resource);
49
-sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);]]></source>
+SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);]]></source>
50
<p>XML 配置文件(configuration XML)中包含了对 MyBatis 系统的核心设置,包含获取数据库连接实例的数据源(DataSource)和决定事务作用域和控制方式的事务管理器(TransactionManager)。XML 配置文件的详细内容后面再探讨,这里先给出一个简单的示例:</p>
51
<source><![CDATA[<?xml version="1.0" encoding="UTF-8" ?>
52
<!DOCTYPE configuration
0 commit comments