Skip to content

Commit 5195c42

Browse files
committed
Change property key to use2way from use-2way
Fixes gh-23
1 parent 1d9a824 commit 5195c42

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/main/asciidoc/user-guide.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ This configuration is optional. The non 2-way SQL can be use on the 2-way SQL mo
759759
[source,properties]
760760
.How to configure using configuration properties file(src/main/resources/mybatis-thymeleaf.properties)
761761
----
762-
use-2way = false # <1>
762+
use2way = false # <1>
763763
----
764764

765765
or
@@ -771,7 +771,7 @@ configuration.getLanguageRegistry().register(new ThymeleafLanguageDriver(
771771
ThymeleafLanguageDriverConfig.newInstance(c -> c.setUse2Way(false)))); // <2>
772772
----
773773

774-
<1> Set the `use-2way` to `false`
774+
<1> Set the `use2way` to `false`
775775
<2> Set the `use2way` property to `false`
776776

777777

@@ -1084,7 +1084,7 @@ The mybatis-thymeleaf provides following properties for customizing configuratio
10841084

10851085
4+|*General configuration*
10861086

1087-
|`use-2way`
1087+
|`use2way`
10881088
|Whether use the 2-way SQL feature
10891089
|`Boolean`
10901090
|`true` (enable the 2-way SQL feature)
@@ -1179,7 +1179,7 @@ The mybatis-thymeleaf provides following properties for customizing configuratio
11791179
[source,properties]
11801180
.src/main/resources/mybatis-thymeleaf.properties
11811181
----
1182-
use-2way = false
1182+
use2way = false
11831183
customizer = com.example.MyTemplateEngineCustomizer
11841184
template-file.cache-enabled = true
11851185
template-file.cache-ttl = 3600000

src/main/java/org/mybatis/scripting/thymeleaf/ThymeleafLanguageDriverConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ public void setLikeAdditionalEscapeTargetChars(Character... likeAdditionalEscape
588588
* <th colspan="3">General configuration</th>
589589
* </tr>
590590
* <tr>
591-
* <td>use-2way</td>
591+
* <td>use2way</td>
592592
* <td>Whether use the 2-way SQL</td>
593593
* <td>{@code true}</td>
594594
* </tr>

src/test/java/org/mybatis/scripting/thymeleaf/ThymeleafLanguageDriverTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ void testCustomWithBuilderUsingCustomProperties() {
299299
System.setProperty("mybatis-thymeleaf.config.file", "mybatis-thymeleaf-empty.properties");
300300
Configuration configuration = new Configuration();
301301
Properties customProperties = new Properties();
302-
customProperties.setProperty("use-2way", "false");
302+
customProperties.setProperty("use2way", "false");
303303
customProperties.setProperty("customizer", "org.mybatis.scripting.thymeleaf.CustomTemplateEngineCustomizer");
304304
customProperties.setProperty("template-file.cache-enabled", "false");
305305
customProperties.setProperty("template-file.cache-ttl", "30000");

src/test/resources/mybatis-thymeleaf-custom.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
#
1616

17-
use-2way=false
17+
use2way=false
1818
customizer=org.mybatis.scripting.thymeleaf.CustomTemplateEngineCustomizer
1919
template-file.cache-enabled=false
2020
template-file.cache-ttl=30000

0 commit comments

Comments
 (0)