mybatis整合ehcache
时间: 2023-08-26 07:13:41 浏览: 108
在MyBatis中整合Ehcache,需要进行以下步骤:
1. 导入mybatis-ehcache整合包和slf4j日志记录包,可以在pom.xml文件中添加以下依赖项:
```xml
<dependency>
<groupId>org.mybatis.caches</groupId>
<artifactId>mybatis-ehcache</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>2.0.0-alpha0</version>
<scope>test</scope>
</dependency>
```
<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [Mybatis缓存](https://blog.csdn.net/ShiZaolin/article/details/103410294)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* *3* [mybatis 整合 ehcache](https://blog.csdn.net/weixin_42325327/article/details/103746722)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文