Skip to content

Commit 286b302

Browse files
committed
Trivial changes made by the formatter [skip ci]
1 parent 94d3989 commit 286b302

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/site/markdown/logging.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ To see MyBatis logging statements you may enable logging on a package, a mapper
5353

5454
Again, how you do this is dependent on the logging implementation in use. We'll show how to do it with SLF4J(Logback). Configuring the logging services is simply a matter of including one or more extra configuration files (e.g. `logback.xml`) and sometimes a new JAR file. The following example configuration will configure full logging services using SLF4J(Logback) as a provider. There are 2 steps.
5555

56-
#### Step 1: Add the SLF4J + Logback JAR files
56+
#### Step 1: Add the SLF4J + Logback JAR files
5757

5858
Because we are using SLF4J(Logback), we will need to ensure its JAR file is available to our application. To use SLF4J(Logback), you need to add the JAR file to your application classpath.
5959

@@ -69,7 +69,7 @@ If you use the maven, you can download jar files by adding following settings on
6969
</dependency>
7070
```
7171

72-
#### Step 2: Configure Logback
72+
#### Step 2: Configure Logback
7373

7474
Configuring Logback is simple. Suppose you want to enable the log for this mapper:
7575

@@ -166,7 +166,7 @@ Yes, as you may have noticed, there is no difference in configuring logging for
166166

167167
The remaining configuration in the `logback.xml` file is used to configure the appenders, which is beyond the scope of this document. However, you can find more information at the [Logback](https://logback.qos.ch/) website. Or, you could simply experiment with it to see what effects the different configuration options have.
168168

169-
#### Configuration example for Log4j 2
169+
#### Configuration example for Log4j 2
170170

171171
```xml
172172
<!-- pom.xml -->
@@ -198,7 +198,7 @@ The remaining configuration in the `logback.xml` file is used to configure the a
198198
</Configuration>
199199
```
200200

201-
#### Configuration example for Log4j
201+
#### Configuration example for Log4j
202202

203203
```xml
204204
<!-- pom.xml -->
@@ -220,7 +220,7 @@ log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
220220
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
221221
```
222222

223-
#### Configuration example for JDK logging
223+
#### Configuration example for JDK logging
224224

225225
```properties
226226
# logging.properties

src/site/markdown/sqlmap-xml.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ As an irregular case, some databases allow INSERT, UPDATE or DELETE statement to
220220
insert into Author (username, password, email, bio)
221221
values (#{username}, #{password}, #{email}, #{bio})
222222
returning id, username, password, email, bio
223-
</select>
223+
</select>
224224
```
225225

226226
### sql
@@ -334,7 +334,7 @@ Despite all of these powerful options, most of the time you'll simply specify th
334334
#{lastName}
335335
```
336336

337-
#### String Substitution
337+
#### String Substitution
338338

339339
By default, using the `#{}` syntax will cause MyBatis to generate `PreparedStatement` properties and set the values safely against the `PreparedStatement` parameters (e.g. ?). While this is safer, faster and almost always preferred, sometimes you just want to directly inject an unmodified string into the SQL Statement. For example, for ORDER BY, you might use something like this:
340340

@@ -648,7 +648,7 @@ In order to inject the results into the constructor, MyBatis needs to identify t
648648
</constructor>
649649
```
650650

651-
When you are dealing with a constructor with many parameters, maintaining the order of arg elements is error-prone.
651+
When you are dealing with a constructor with many parameters, maintaining the order of arg elements is error-prone.
652652
Since 3.4.3, by specifying the name of each parameter, you can write arg elements in any order. To reference constructor parameters by their names, you can either add `@Param` annotation to them or compile the project with '-parameters' compiler option and enable `useActualParamName` (this option is enabled by default). The following example is valid for the same constructor even though the order of the second and the third parameters does not match with the declared order.
653653

654654
```xml

0 commit comments

Comments
 (0)