Skip to content

Commit

Permalink
Merge pull request #3069 from YouChuanlong/fix/typos
Browse files Browse the repository at this point in the history
docs: fix typos in the markdown
  • Loading branch information
hazendaz committed Jan 21, 2024
2 parents d75595e + 34121cf commit 5f11d7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/site/markdown/java-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The rest of the examples in this section will assume you're following this direc

### SqlSessions

The primary Java interface for working with MyBatis is the SqlSession. Through this interface you can execute commands, get mappers and manage transactions. We'll talk more about SqlSession itself shortly, but first we have to learn how to acquire an instance of SqlSession. SqlSessions are created by a SqlSessionFactory instance. The SqlSessionFactory contains methods for creating instances of SqlSessions all different ways. The SqlSessionFactory itself is created by the SqlSessionFactoryBuilder that can create the SqlSessonFactory from XML, annotations or hand coded Java configuration.
The primary Java interface for working with MyBatis is the SqlSession. Through this interface you can execute commands, get mappers and manage transactions. We'll talk more about SqlSession itself shortly, but first we have to learn how to acquire an instance of SqlSession. SqlSessions are created by a SqlSessionFactory instance. The SqlSessionFactory contains methods for creating instances of SqlSessions all different ways. The SqlSessionFactory itself is created by the SqlSessionFactoryBuilder that can create the SqlSessionFactory from XML, annotations or hand coded Java configuration.

<span class="label important">NOTE</span> When using MyBatis with a dependency injection framework like Spring or Guice, SqlSessions are created and injected by the DI framework so you don't need to use the SqlSessionFactoryBuilder or SqlSessionFactory and can go directly to the SqlSession section. Please refer to the MyBatis-Spring or MyBatis-Guice manuals for further info.

Expand Down
2 changes: 1 addition & 1 deletion src/site/markdown/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ If you want to tune the logging at a finer level you can turn logging on for spe
</logger>
```

By the contrary you may want want to enable logging for a group of mappers. In that case you should add as a logger the root package where your mappers reside:
By the contrary you may want to enable logging for a group of mappers. In that case you should add as a logger the root package where your mappers reside:

```xml
<logger name="org.mybatis.example">
Expand Down

0 comments on commit 5f11d7d

Please sign in to comment.