You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/site/es/xdoc/mappers.xml
+21-2Lines changed: 21 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,26 @@ public MapperFactoryBean<UserMapper> userMapper() throws Exception {
121
121
</ul>
122
122
123
123
<p>Tango <code><mybatis:scan/></code> como <code>@MapperScan</code> son características añadidas en MyBatis-Spring 1.2.0.
124
-
<code>@MapperScan</code> requiere Spring 3.1+.</p>
124
+
<code>@MapperScan</code> requiere Spring 3.1+.</p>
125
+
126
+
<p>
127
+
Since 2.0.2, mapper scanning feature support a option (<code>lazy-initialization</code>)
128
+
that control lazy initialization enabled/disabled of mapper bean.
129
+
The motivation for adding this option is supporting a lazy initialization control feature supported by Spring Boot 2.2.
130
+
The default of this option is <code>false</code> (= not use lazy initialization).
131
+
If developer want to use lazy initialization for mapper bean, it should be set to the <code>true</code> expressly.
132
+
</p>
133
+
<p>
134
+
<spanclass="label important">IMPORTANT</span> If use the lazy initialization feature,
135
+
the developer need to understand following limitations. If any of following conditions are matches,
136
+
the lazy initialization feature cannot use on your application.
137
+
</p>
138
+
<ul>
139
+
<li>When refers to the statement of <b>other mapper</b> using <code><![CDATA[<association>]]></code>(<code>@One</code>) and <code><![CDATA[<collection>]]></code>(<code>@Many</code>)</li>
140
+
<li>When includes to the fragment of <b>other mapper</b> using <code><![CDATA[<include>]]></code></li>
141
+
<li>When refers to the cache of <b>other mapper</b> using <code><![CDATA[<cache-ref>]]></code>(<code>@CacheNamespaceRef</code>)</li>
142
+
<li>When refers to the result mapping of <b>other mapper</b> using <code><![CDATA[<select resultMap="...">]]></code>(<code>@ResultMap</code>)</li>
<li><code><![CDATA[<association>]]></code>(<code>@One</code>) and <code><![CDATA[<collection>]]></code>(<code>@Many</code>)を利用して、<b>他のMapperの</b>ステートメントを参照している場合</li>
Copy file name to clipboardExpand all lines: src/site/ko/xdoc/mappers.xml
+20-1Lines changed: 20 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,26 @@ public MapperFactoryBean<UserMapper> userMapper() throws Exception {
97
97
</ul>
98
98
99
99
<p><code><mybatis:scan/></code> 와 <code>@MapperScan</code> 모두 마이바티스 스프링 연동모듈 1.2.0에서 추가된 기능이다.
100
-
<code>@MapperScan</code> 은 스프링 버전이 3.1이상이어야 한다. </p>
100
+
<code>@MapperScan</code> 은 스프링 버전이 3.1이상이어야 한다. </p>
101
+
102
+
<p>
103
+
Since 2.0.2, mapper scanning feature support a option (<code>lazy-initialization</code>)
104
+
that control lazy initialization enabled/disabled of mapper bean.
105
+
The motivation for adding this option is supporting a lazy initialization control feature supported by Spring Boot 2.2.
106
+
The default of this option is <code>false</code> (= not use lazy initialization).
107
+
If developer want to use lazy initialization for mapper bean, it should be set to the <code>true</code> expressly.
108
+
</p>
109
+
<p>
110
+
<spanclass="label important">IMPORTANT</span> If use the lazy initialization feature,
111
+
the developer need to understand following limitations. If any of following conditions are matches,
112
+
the lazy initialization feature cannot use on your application.
113
+
</p>
114
+
<ul>
115
+
<li>When refers to the statement of <b>other mapper</b> using <code><![CDATA[<association>]]></code>(<code>@One</code>) and <code><![CDATA[<collection>]]></code>(<code>@Many</code>)</li>
116
+
<li>When includes to the fragment of <b>other mapper</b> using <code><![CDATA[<include>]]></code></li>
117
+
<li>When refers to the cache of <b>other mapper</b> using <code><![CDATA[<cache-ref>]]></code>(<code>@CacheNamespaceRef</code>)</li>
118
+
<li>When refers to the result mapping of <b>other mapper</b> using <code><![CDATA[<select resultMap="...">]]></code>(<code>@ResultMap</code>)</li>
Copy file name to clipboardExpand all lines: src/site/xdoc/mappers.xml
+20-1Lines changed: 20 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,26 @@ public MapperFactoryBean<UserMapper> userMapper() throws Exception {
124
124
</ul>
125
125
126
126
<p>Both <code><mybatis:scan/></code> and <code>@MapperScan</code> are features introduced in MyBatis-Spring 1.2.0.
127
-
<code>@MapperScan</code> requires Spring 3.1+.</p>
127
+
<code>@MapperScan</code> requires Spring 3.1+.</p>
128
+
129
+
<p>
130
+
Since 2.0.2, mapper scanning feature support a option (<code>lazy-initialization</code>)
131
+
that control lazy initialization enabled/disabled of mapper bean.
132
+
The motivation for adding this option is supporting a lazy initialization control feature supported by Spring Boot 2.2.
133
+
The default of this option is <code>false</code> (= not use lazy initialization).
134
+
If developer want to use lazy initialization for mapper bean, it should be set to the <code>true</code> expressly.
135
+
</p>
136
+
<p>
137
+
<spanclass="label important">IMPORTANT</span> If use the lazy initialization feature,
138
+
the developer need to understand following limitations. If any of following conditions are matches,
139
+
the lazy initialization feature cannot use on your application.
140
+
</p>
141
+
<ul>
142
+
<li>When refers to the statement of <b>other mapper</b> using <code><![CDATA[<association>]]></code>(<code>@One</code>) and <code><![CDATA[<collection>]]></code>(<code>@Many</code>)</li>
143
+
<li>When includes to the fragment of <b>other mapper</b> using <code><![CDATA[<include>]]></code></li>
144
+
<li>When refers to the cache of <b>other mapper</b> using <code><![CDATA[<cache-ref>]]></code>(<code>@CacheNamespaceRef</code>)</li>
145
+
<li>When refers to the result mapping of <b>other mapper</b> using <code><![CDATA[<select resultMap="...">]]></code>(<code>@ResultMap</code>)</li>
Copy file name to clipboardExpand all lines: src/site/zh/xdoc/mappers.xml
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,25 @@ public MapperFactoryBean<UserMapper> userMapper() throws Exception {
107
107
108
108
<p><code><mybatis:scan/></code> 和 <code>@MapperScan</code> 都在 MyBatis-Spring 1.2.0 中被引入。<code>@MapperScan</code> 需要你使用 Spring 3.1+。</p>
109
109
110
+
<p>
111
+
Since 2.0.2, mapper scanning feature support a option (<code>lazy-initialization</code>)
112
+
that control lazy initialization enabled/disabled of mapper bean.
113
+
The motivation for adding this option is supporting a lazy initialization control feature supported by Spring Boot 2.2.
114
+
The default of this option is <code>false</code> (= not use lazy initialization).
115
+
If developer want to use lazy initialization for mapper bean, it should be set to the <code>true</code> expressly.
116
+
</p>
117
+
<p>
118
+
<spanclass="label important">IMPORTANT</span> If use the lazy initialization feature,
119
+
the developer need to understand following limitations. If any of following conditions are matches,
120
+
the lazy initialization feature cannot use on your application.
121
+
</p>
122
+
<ul>
123
+
<li>When refers to the statement of <b>other mapper</b> using <code><![CDATA[<association>]]></code>(<code>@One</code>) and <code><![CDATA[<collection>]]></code>(<code>@Many</code>)</li>
124
+
<li>When includes to the fragment of <b>other mapper</b> using <code><![CDATA[<include>]]></code></li>
125
+
<li>When refers to the cache of <b>other mapper</b> using <code><![CDATA[<cache-ref>]]></code>(<code>@CacheNamespaceRef</code>)</li>
126
+
<li>When refers to the result mapping of <b>other mapper</b> using <code><![CDATA[<select resultMap="...">]]></code>(<code>@ResultMap</code>)</li>
0 commit comments