From 62c619d88214be8ce30973b51d95a41ab5c4b4b0 Mon Sep 17 00:00:00 2001 From: awxiaoxian2020 Date: Sat, 21 May 2022 23:13:47 +0800 Subject: [PATCH 1/3] translate the test doc for zh --- .../src/site/markdown/zh/index.md | 309 ++++++++++++++++++ 1 file changed, 309 insertions(+) create mode 100644 mybatis-spring-boot-test-autoconfigure/src/site/markdown/zh/index.md diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/markdown/zh/index.md b/mybatis-spring-boot-test-autoconfigure/src/site/markdown/zh/index.md new file mode 100644 index 00000000..21b1ed1b --- /dev/null +++ b/mybatis-spring-boot-test-autoconfigure/src/site/markdown/zh/index.md @@ -0,0 +1,309 @@ +# 简介 + +## 什么是 MyBatis-Spring-Boot-Starter-Test? + +MyBatis-Spring-Boot-Starter-Test 为 [MyBatis-Spring-Boot-Starter](http://www.mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/) 中的 MyBatis 组件提供测试用例。 + +使用它你将可以做到: + +* 可以使用 `@MybatisTest` 单独为 MyBatis 组件进行测试 +* 在测试 MyBatis 组件时,可以导入依赖 + +TheMyBatis-Spring-Boot-Starter-Test 要求以下版本: + +| MyBatis-Spring-Boot-Starter-Test | Spring Boot | Java | +| -------------------------------- | ------------- | --------- | +| **2.3** | 2.5 或更高 | 8 或更高 | +| **2.2** | 2.5 - 2.7 | 8 或更高 | +| **2.1** | 2.1 - 2.4 | 8 或更高 | +| **~~2.0 (EOL)~~** | ~~2.0 或 2.1~~ | ~~8 或更高~~ | +| **~~1.3 (EOL)~~** | ~~1.5~~ | ~~6 或更高~~ | +| **~~1.2 (EOL)~~** | ~~1.4~~ | ~~6 或更高~~ | + +## 安装 + +### Maven + +如果你使用 Maven,只需要将下面的依赖放入你的 `pom.xml`: + +```xml + + org.mybatis.spring.boot + mybatis-spring-boot-starter-test + ${project.version} + test + +``` + +### Gradle + +如果使用 Gradle,在 `build.gradle` 中加入以下内容: + +```groovy +dependencies { + testCompile("org.mybatis.spring.boot:mybatis-spring-boot-starter-test:${project.version}") +} +``` + +## 使用 @MybatisTest + +当你想对 MyBatis 组件进行测试时,可以使用 `@MybatisTest` (Mapper 接口与 `SqlSession`)。 +默认情况下, 它将会配置 MyBatis(MyBatis-Spring)组件(`SqlSessionFactory` 与 `SqlSessionTemplate`),配置 MyBatis mapper 接口和内存中的内嵌的数据库。 +MyBatis 测试默认情况下基于事务,且在测试的结尾进行回滚。 +更多相关的信息可参见 [Spring 参考文档](https://docs.spring.io/spring/docs/current/spring-framework-reference/testing.html#testcontext-tx-enabling-transactions) 。 +再者,普遍情况下 `@Component` beans 将不会被载入 `ApplicationContext` 。 + +### 对 Mapper 接口进行测试 + +如果你想对下面的 Mapper 接口进行测试,你只需要将 `@MybatisTest` 添加在测试类上。 + +Mapper 接口: + +```java +package sample.mybatis.mapper; + +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; +import sample.mybatis.domain.City; + +@Mapper +public interface CityMapper { + + @Select("SELECT * FROM CITY WHERE state = #{state}") + City findByState(@Param("state") String state); + +} +``` + +测试类: + +```java +package sample.mybatis.mapper; + +import org.junit.jupiter.api.Test; +import org.junit.runner.RunWith; +import org.mybatis.spring.boot.test.autoconfigure.MybatisTest; +import sample.mybatis.domain.City; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.junit4.SpringRunner; + +import static org.assertj.core.api.Assertions.assertThat; + +@RunWith(SpringRunner.class) +@MybatisTest +public class CityMapperTest { + + @Autowired + private CityMapper cityMapper; + + @Test + public void findByStateTest() { + City city = cityMapper.findByState("CA"); + assertThat(city.getName()).isEqualTo("San Francisco"); + assertThat(city.getState()).isEqualTo("CA"); + assertThat(city.getCountry()).isEqualTo("US"); + } + +} +``` + +### DAO 模式下的测试 + +如果你为下面的 DAO 类创建测试,你只需要将 `@MybatisTest` 和 `@Import` 添加在你的测试类上。 + +DAO 类: + +```java +package sample.mybatis.dao; + +import org.apache.ibatis.session.SqlSession; +import sample.mybatis.domain.City; + +import org.springframework.stereotype.Component; + +@Component +public class CityDao { + + private final SqlSession sqlSession; + + public CityDao(SqlSession sqlSession) { + this.sqlSession = sqlSession; + } + + public City selectCityById(long id) { + return this.sqlSession.selectOne("selectCityById", id); + } + +} +``` + +测试类: + +```java +package sample.mybatis.dao; + +import org.junit.jupiter.api.Test; +import org.junit.runner.RunWith; +import org.mybatis.spring.boot.test.autoconfigure.MybatisTest; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Import; +import org.springframework.test.context.junit4.SpringRunner; +import sample.mybatis.domain.City; + +import static org.assertj.core.api.Assertions.assertThat; + +@RunWith(SpringRunner.class) +@MybatisTest +@Import(CityDao.class) +public class CityDaoTest { + + @Autowired + private CityDao cityDao; + + @Test + public void selectCityByIdTest() { + City city = cityDao.selectCityById(1); + assertThat(city.getName()).isEqualTo("San Francisco"); + assertThat(city.getState()).isEqualTo("CA"); + assertThat(city.getCountry()).isEqualTo("US"); + } + +} +``` + +## 使用真实的数据库 + +内嵌的数据库通常在测试上表现良好,因为们很快,且不需要安装一些开发工具。 +然而如果你希望使用真实的数据库,你可以像下面这样使用 `@AutoConfigureTestDatabase` : + +```java +package sample.mybatis.mapper; +// ... +import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase; + +@RunWith(SpringRunner.class) +@MybatisTest +@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE) +public class CityMapperTest { + // ... +} +``` + +## 避免探测到真实的 @SpringBootApplication + + `@MybatisTest` 在默认情况下将会探测到带有 `@SpringBootApplication` 的类。 +因此,由于 bean 定义的一些方法,可能会发生一些意想不到的错误,或者一些不必要的组件被装入 `ApplicationContext` 。 +为了避免这种情况,我们可以在与测试类相同的包中创建带有 `@SpringBootApplication` 的类。 + +```java +package sample.mybatis.mapper; + +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +class MapperTestApplication { + +} +``` + +## 与其他 @***Test 一起使用 + +如果 `@MybatisTest` 与其他的 `@***Test` 一起使用(例如: `@WebMvcTest`), +请考虑使用 `@AutoConfigureMybatis` ,因为不能在同一测试中指定两个或多个`@***Test` 注解。 + +测试的目标类: + +```java +@RestController +public class PingController { + PingMapper mapper; + + PingController(PingMapper mapper) { + this.mapper = mapper; + } + + @GetMapping("ping") + String ping() { + return mapper.ping(); + } +} +``` + +```java +@Mapper +public interface PingMapper { +@Select("SELECT 'OK'") + String ping(); +} +``` + +测试类: + +```java +@RunWith(SpringRunner.class) +@WebMvcTest +@AutoConfigureMybatis // 替代 @MybatisTest +public class PingTests { + + @Autowired + private MockMvc mvc; + + @Test + public void ping() throws Exception { + this.mvc.perform(get("/ping")) + .andExpect(status().isOk()) + .andExpect(content().string("OK")); + } + +} +``` + +## 在 JUnit 5 上使用 @MybatisTest + +`@MybatisTest` 可以在 JUnit 5 上使用: + +```java +@ExtendWith(SpringExtension.class) +@MybatisTest +public class CityMapperTest { + // ... +} +``` + +自 2.0.1 起, `@ExtendWith(SpringExtension.class)` 可以像下面这样被忽略: + +```java +@MybatisTest +public class CityMapperTest { + // ... +} +``` + +## 附录 + +### 导入的自动配置 + + `@MybatisTest` 将会导入以下自动配置的类: + +* `org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration` +* `org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration` +* `org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration` +* `org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration` +* `org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration` +* `org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration` +* `org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration` +* `org.springframework.boot.autoconfigure.sql.init.SqlInitializationAutoConfiguration` +* `org.mybatis.spring.boot.autoconfigure.MybatisLanguageDriverAutoConfiguration` +* `org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration` + +### 可运行的样例 + +项目(为每个类型)提供了两个样例供使用: + +| 分类 | 样例 | 描述 | +|:------ |:----------------------------------------------------------------------------------------------------------------------------------- |:--------------------------------------------------------------------- | +| 核心 | [样例1](https://github.com/mybatis/spring-boot-starter/tree/master/mybatis-spring-boot-samples/mybatis-spring-boot-sample-annotation) | 展示了最简单的场景,只有一个 mapper 和一个注入 mapper 的组件。这就是我们在“快速入门”部分看到的例子。 | +| | [样例2](https://github.com/mybatis/spring-boot-starter/tree/master/mybatis-spring-boot-samples/mybatis-spring-boot-sample-xml) | 展示了如何在 XML 文件中使用一个带有语句的 Mapper,并且也有使用 `SqlSessionTemplate` 的 DAO 的示例。 | +| JVM 语言 | [样例3](https://github.com/mybatis/spring-boot-starter/tree/master/mybatis-spring-boot-samples/mybatis-spring-boot-sample-kotlin) | 展示了如何和 kotlin 一同使用。 | +| | [样例4](https://github.com/mybatis/spring-boot-starter/tree/master/mybatis-spring-boot-samples/mybatis-spring-boot-sample-groovy) | 展示了如何和 groovy 一同使用。 | From f31a1f21d8b0db3be369d14a7a33ec42851cc74f Mon Sep 17 00:00:00 2001 From: Xavi Lee Date: Sun, 5 Jun 2022 17:33:15 +0800 Subject: [PATCH 2/3] update the structure for site plugin --- .../src/site/{markdown/zh => zh/markdown}/index.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename mybatis-spring-boot-test-autoconfigure/src/site/{markdown/zh => zh/markdown}/index.md (100%) diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/markdown/zh/index.md b/mybatis-spring-boot-test-autoconfigure/src/site/zh/markdown/index.md similarity index 100% rename from mybatis-spring-boot-test-autoconfigure/src/site/markdown/zh/index.md rename to mybatis-spring-boot-test-autoconfigure/src/site/zh/markdown/index.md From 1084c20b9ccd66c2b88ee734f59f981540261db4 Mon Sep 17 00:00:00 2001 From: Xavi Lee Date: Mon, 6 Jun 2022 10:13:54 +0800 Subject: [PATCH 3/3] update the structure about translations --- .../src/site/markdown/index.md | 9 ++++++ .../src/site/resources/css/site.css | 29 ++++++++++++++++++ .../src/site/resources/es/css/site.css | 29 ++++++++++++++++++ .../src/site/resources/images/en.png | Bin 0 -> 1767 bytes .../src/site/resources/images/es.png | Bin 0 -> 873 bytes .../src/site/resources/images/ja.png | Bin 0 -> 705 bytes .../src/site/resources/images/ko.png | Bin 0 -> 1361 bytes .../src/site/resources/images/zh.png | Bin 0 -> 793 bytes .../src/site/resources/ja/css/site.css | 29 ++++++++++++++++++ .../src/site/resources/ko/css/site.css | 29 ++++++++++++++++++ .../src/site/resources/zh/css/site.css | 29 ++++++++++++++++++ .../src/site/site_zh.xml | 29 ++++++++++++++++++ .../src/site/zh/markdown/index.md | 9 ++++++ 13 files changed, 192 insertions(+) create mode 100644 mybatis-spring-boot-test-autoconfigure/src/site/resources/css/site.css create mode 100644 mybatis-spring-boot-test-autoconfigure/src/site/resources/es/css/site.css create mode 100644 mybatis-spring-boot-test-autoconfigure/src/site/resources/images/en.png create mode 100644 mybatis-spring-boot-test-autoconfigure/src/site/resources/images/es.png create mode 100644 mybatis-spring-boot-test-autoconfigure/src/site/resources/images/ja.png create mode 100644 mybatis-spring-boot-test-autoconfigure/src/site/resources/images/ko.png create mode 100644 mybatis-spring-boot-test-autoconfigure/src/site/resources/images/zh.png create mode 100644 mybatis-spring-boot-test-autoconfigure/src/site/resources/ja/css/site.css create mode 100644 mybatis-spring-boot-test-autoconfigure/src/site/resources/ko/css/site.css create mode 100644 mybatis-spring-boot-test-autoconfigure/src/site/resources/zh/css/site.css create mode 100644 mybatis-spring-boot-test-autoconfigure/src/site/site_zh.xml diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/markdown/index.md b/mybatis-spring-boot-test-autoconfigure/src/site/markdown/index.md index fc0d7430..6a38616d 100644 --- a/mybatis-spring-boot-test-autoconfigure/src/site/markdown/index.md +++ b/mybatis-spring-boot-test-autoconfigure/src/site/markdown/index.md @@ -1,5 +1,14 @@ # Introduction +## Translations + +Users can read about MyBatis-Spring-Boot-Starter-Test in the following translations: + + + ## What is MyBatis-Spring-Boot-Starter-Test? The MyBatis-Spring-Boot-Starter-Test help creating a test cases for MyBatis component using the [MyBatis-Spring-Boot-Starter](http://www.mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/). diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/resources/css/site.css b/mybatis-spring-boot-test-autoconfigure/src/site/resources/css/site.css new file mode 100644 index 00000000..70ceb6b4 --- /dev/null +++ b/mybatis-spring-boot-test-autoconfigure/src/site/resources/css/site.css @@ -0,0 +1,29 @@ +/** + * Copyright 2015-2022 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/* + * when new flags are needed, take them from + * + * http://www.printableworldflags.com/flag-icon + * + * that are free for any kind of usage + */ + +ul.i18n {list-style-type:none;} +li.en {background: url('../images/en.png') left no-repeat;padding-left: 32px; margin: 10px} +li.es {background: url('../images/es.png') left no-repeat;padding-left: 32px; margin: 10px} +li.ja {background: url('../images/ja.png') left no-repeat;padding-left: 32px; margin: 10px} +li.zh {background: url('../images/zh.png') left no-repeat;padding-left: 32px; margin: 10px} +li.ko {background: url('../images/ko.png') left no-repeat;padding-left: 32px; margin: 10px} \ No newline at end of file diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/resources/es/css/site.css b/mybatis-spring-boot-test-autoconfigure/src/site/resources/es/css/site.css new file mode 100644 index 00000000..9d3a3f75 --- /dev/null +++ b/mybatis-spring-boot-test-autoconfigure/src/site/resources/es/css/site.css @@ -0,0 +1,29 @@ +/** + * Copyright 2015-2022 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/* + * when new flags are needed, take them from + * + * http://www.printableworldflags.com/flag-icon + * + * that are free for any kind of usage + */ + +ul.i18n {list-style-type:none;} +li.en {background: url('../../images/en.png') left no-repeat;padding-left: 32px; margin: 10px} +li.es {background: url('../../images/es.png') left no-repeat;padding-left: 32px; margin: 10px} +li.ja {background: url('../../images/ja.png') left no-repeat;padding-left: 32px; margin: 10px} +li.zh {background: url('../../images/zh.png') left no-repeat;padding-left: 32px; margin: 10px} +li.ko {background: url('../../images/ko.png') left no-repeat;padding-left: 32px; margin: 10px} \ No newline at end of file diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/resources/images/en.png b/mybatis-spring-boot-test-autoconfigure/src/site/resources/images/en.png new file mode 100644 index 0000000000000000000000000000000000000000..82cf5f1c38652196e8f8f0ac49d8ba925d7d0470 GIT binary patch literal 1767 zcmV(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ?ZAnByRCwC#mwj*)*;3Di3zuSCpVdjCzP_Au50#*3QD%um82jcPii#=$1F(HYFGTjZQ9Qlm zPKF=cPtSYrllkNmWR}j&)Bsms?LL$wm9(OnGS%7i;I33S#CUo{3S;NvOd+M9anl%Mo525QubkaZ& z(e>yN)B(_S13hFibM{o0PSjAUchKkUBWq1LY15}+L@f61{eYU9BXo3l69A^E(AOJe z|DL0~c(@yL+4mV_*XVe51KvM3qACi-#RZg=&BE^wM=cQ0iNp@e9|iFH!z};qH+b-J z6W!Zi!d6hoh@boj`9JktcmiLi>zGy zExwkW!N~}ZvZMj-xYrL!kesnW;PFOy&Ju?m59%W>PkmV zcEkVzC@}zuM3-ZFdr2;uL1sZA+OQ!2G&HpE;->moRwMxtEXzRG)p#Mw6%qH%R*{eI zdJrWkQ3t;Ie#6aIK}E^a0Ni=^pg2>IV5t91G`;$-2Z{(N3X08!V8rj;lkQLG{4eR( zb=bi$6D~j$L=Pf{al`Zy4*%!iH!79|G3#mlKD504n*#X18j#IKk}GXM5c+$;uOt1r zaa~D5O|}o{XJ7?Gu~K~l0GfuV1JW@6VhgHzbDjCalu;VELn6CI^ z08|G#iFmzqJhz#a(fJg0pQLI>2`MfIB7Q_nz$6k04=lyeOUu$3KR%mx-uW@*>>}(6*rxZRAhmEm$l;MB?pORaf%XTc@#)9mDMhe$UV~tLa>~mbnct zbEIw&`Cp%eW$A!|VOVkKTuoadPUrWeq-3XbUGj;DNa%dKv_3LlT5K8O{lzw^{`FCD zW|Rpm7ZH&rySuXBxki|dP zD^BMMvDuagkgEbXof_M=Eu^+~Ia$L}>G|WIa2MW(t@RA)b#**-Za6EKy+Xj_y>4)Y zLMG+qyO}rdS9Esv;`(+Gc_;shOew%K_X#RTwDEHFV$!o*2@4!M_E8j94@!I4T4^R# zJge8rq1Qf;+`<i4FcpU zK(5E*aXT(_aADQcsGqizx#{Orwxv?F1 literal 0 HcmV?d00001 diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/resources/images/es.png b/mybatis-spring-boot-test-autoconfigure/src/site/resources/images/es.png new file mode 100644 index 0000000000000000000000000000000000000000..a4177e9f79d261dcb975aa9b892a92f1be43e949 GIT binary patch literal 873 zcmV-v1D5=WP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ;?@2^KRCwC#m(6QcM;OL`GiOdtuJPvH7(-$NMKLr|w04o&F1l!Gk%G8$<-(0i z*IoAC=&Dfs6SN}e!r~%}XdzOffwn?KDw3OMa&vRf$IQGg&bhhAkD@hlvdIg>FmvWG z&pgjO@60F>VJAbg!?6oM0Ra#db(P_O!~nxjzx!d8pyK(p=D>}s`wY-P2h_g(rqcP- zg$00y0V1&$NfP{vH9$)0&~HnxOT9LxWaF*w(!bJc%hq>2(u5=hhztPUBi$H@<4RU9 z-5AL%06Bmx!*@6F-EKAf4}|zM?E?_&kc|$~=~Tl&5P&T)FnP;@Zi95*G^qmT6att) zz<&($E06^0JqgHwHn3S5Bv@F-c0!Y^) zT0eI|Im9`Z(M((p(fbp$-EIy_%K$9M21xD#5yjjuF;ia|_I??%a@SyvA7W(2vA(>- zz3W}RzA%{Qagmbk-nH;zth^3DdJ<$g`^GVS@hrjIERTO}F*rC*^Vp9hvoXzcS2%gl zp!H2~=2ic{C;R#2!CM$80A$ZB@f`*8Ydjhf*5iy*|1L2xIYsApi(L)bd!|L$9QZ&9 zLQswVX(-+ny7;_=f@})mjN|m!3V%PTaqYJ&B=>)UjlaN$V5C3(e;0>HR>}jCksB@d zm{uvxGvf@@Lu|`)Nze0S&hz*W&*$eqMaCx3Sdid@UC;xd^Gs|DadL!dG|Y{M4_SOv zLn2Lf^fb}oFBm;wShAYi|14mmp=~fAcwb_`dj~-efFjf>pB;U`$nbN9j|7-*i_!0e z#-L$cx7gEm7;SkoE2;lJ%wA~=-utcIPZp!bViW{OMQ4Gk)rh_0c)T{9GvFKqLGIIv z!aLXB1J1kmPbPevv!EwIz6nK86#`Ht0EG?n6sha=>Le)SHh}ZM^Y(hBcfw+~IR%UZ zCxEevujR|YpQ?Bh)Qh^xNPxE5eVpzzfR_URrm1P`0ajTf00000NkvXXu0mjfTquqq literal 0 HcmV?d00001 diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/resources/images/ja.png b/mybatis-spring-boot-test-autoconfigure/src/site/resources/images/ja.png new file mode 100644 index 0000000000000000000000000000000000000000..67020dfcc2ee8f6af401afa8ab864a547b73cf7a GIT binary patch literal 705 zcmV;y0zUnTP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ;M@d9MRCwC#m(ObxK@`V7v)N>mlBTV#BzjR>B$XnF3W}wmQ1IwM@gfL?%~WFc(k~3l!pxiR z`@Z*P-Y5|vN?1gU4FU>?0Z#qfPK1DO0~rx1M&i9vn=GI!!U%L(b@`)$6L}Ka|FlYk zuvld2^;-y*h!6B*_4T4+vHwpX`0$a^#ASl_?@%Z}A%w(w`{*7UBQZ3%?lR1a$V-#S z)v0Ob$1h=#_`?w*XneX)pCNtnxM>v(8Y>Wd`pnmh7l@HU2-ozccx8fk{|=n}dt0c0 z2wzT}rB;{);(*kbN`o2d{~F6lvh~qDRNQWj0^$63s?VMRNuavw6mKN+lSo)DQk!{! zvu{splF)xLjb5yv2u#a_#k==gM?iZXx>Q1uFeIRna@o8LMFgePnv;?vhmf#lT(ugH z)X~u2V+_#oS7XQ(`$#Cz}%@qIc*kB~Y%f|bb_ z+gYK2>$=izxUMTe-de8$t-^{VjN);!Ouz<0tu>`msjUR+PKOG}0=t3DZ5H7h@LbiK n(#{B)Qy*AR8;{ed3H%rU>)GG6*XR$l00000NkvXXu0mjfrY1gr literal 0 HcmV?d00001 diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/resources/images/ko.png b/mybatis-spring-boot-test-autoconfigure/src/site/resources/images/ko.png new file mode 100644 index 0000000000000000000000000000000000000000..0e3d706255e1b3586ff2aa8370cf5dd351e1b206 GIT binary patch literal 1361 zcmV-X1+MyuP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ=*GWV{RCwC#ms?CzcO1t*r>#9)svw}G7f48$Wm$|{P=MO1_lbPiJQ*r%#_IGc%LRmoG0Z3c9+wc=+%k8jXgG%nV#E z*OCN;LLr))n=zS83=a=eSXfABXXm_gb+bDnkqGC{pJ)C0^?1Er3JMCy%F4oSwZI|L zCr=_t5+08Si^W1tP7XVE>_C#FsVFF#a|9I?6>QtK4U@^lty{OKsi}EJe*HSZgI}W# z4JCFSl+eYCNn2%QWwf`qlb4rANl6K{wY5p|1$STyBO@cUwY5=IRW*?{ z!eIt??nE64f_CP~r3eKrDne0->SWe5Hlj0|0cdGy!Dh2zu~_EI14Ro8n2jgbT2c1a zp-oSpT8#wg)dauEd30%vn8YYs{9UZw^&y6jK3+^BD$*_1vwyuGVB^>rT8#!Vxpk=` z#u0fV-$`$RkN^p%ZWZ6&yN_X!b{8$6GqIY#!$v-c_aKk}!4G;H2Q_c7A~?!~ENB_a z<(IfZ%~AviA?7&8Y;3UQ@_yS?F z;KB0+sH!?+@aD~%?Ay1GvuDq8?%X*54C#6rzNkdRqYw?DS7QjFq6&d31mg*X*wZL` zKYfclOBMjFt*sn6e3)+z9pd7&@SM&m0oGV7=F#i*05mo>a^uDgd_Es`yB(*~Nqc)c z+1c3uT==n@JzqH)coKxEV-o_y>NGz8q@2%ol_g2`)a?NYZr{F*)oR6THd9|;k0eQq zkB=kE@&Q1ftL$}kbr_9Cva_=p9314#nKL+@&SXA_L?Wc6rA-J3hr^z+5ki9C*E6yk0N+_wQ%>_U()E?2e8OYHMrRv}qHvEK^)uOhG{b4u@k#xi=UL6RB8H zlo5fv2`qNk^4Ui*L*z#0ey<~0(J$Hj|cAsc?bUjSAe zps1=!AP{(|7t+Z*ph!S2PzgRO11^hbzud35~ Tj}h(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ;pGibPRCwC#m%DBgQ4of|v%8L+i(>(bkZ9;c7TOT_ zJ_23b`RUhh0F4N!n)i^V=;0B=wsg+rjxELiGJG=_trvY}wefK8Jinl^4ru~VjQ|kE zdVQ>))8q7mqQP_!jz-<>Z1OA(f3V*rStagXKAHY@itEOlIY8q|dX+9t7 zhYd8$3VKFiovH81b>|f;X23+yP6tbpVIP4RbYSU*Qh${3_gO91fnhrhS`D-D`?0Cd zeVqtMRs`T7?u;t4XxVo-+%_zZ=l9)7ElVK`Cn=CPh8Y0-0c3j%z6B~3!g_tO2=N|N z3!EOu=RE#xYHijvMy2Hy!fExuJ0O(27Y(W$Z0Ysz8 z#W{ktwGt_?5dg0St)rt-N8&-Xc?VntZUGx5kLACC&u;KfP#-+Yv;=6oi=Wf;2JmkH X`W$zu!94vB00000NkvXXu0mjfQX5oi literal 0 HcmV?d00001 diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/resources/ja/css/site.css b/mybatis-spring-boot-test-autoconfigure/src/site/resources/ja/css/site.css new file mode 100644 index 00000000..9d3a3f75 --- /dev/null +++ b/mybatis-spring-boot-test-autoconfigure/src/site/resources/ja/css/site.css @@ -0,0 +1,29 @@ +/** + * Copyright 2015-2022 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/* + * when new flags are needed, take them from + * + * http://www.printableworldflags.com/flag-icon + * + * that are free for any kind of usage + */ + +ul.i18n {list-style-type:none;} +li.en {background: url('../../images/en.png') left no-repeat;padding-left: 32px; margin: 10px} +li.es {background: url('../../images/es.png') left no-repeat;padding-left: 32px; margin: 10px} +li.ja {background: url('../../images/ja.png') left no-repeat;padding-left: 32px; margin: 10px} +li.zh {background: url('../../images/zh.png') left no-repeat;padding-left: 32px; margin: 10px} +li.ko {background: url('../../images/ko.png') left no-repeat;padding-left: 32px; margin: 10px} \ No newline at end of file diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/resources/ko/css/site.css b/mybatis-spring-boot-test-autoconfigure/src/site/resources/ko/css/site.css new file mode 100644 index 00000000..9d3a3f75 --- /dev/null +++ b/mybatis-spring-boot-test-autoconfigure/src/site/resources/ko/css/site.css @@ -0,0 +1,29 @@ +/** + * Copyright 2015-2022 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/* + * when new flags are needed, take them from + * + * http://www.printableworldflags.com/flag-icon + * + * that are free for any kind of usage + */ + +ul.i18n {list-style-type:none;} +li.en {background: url('../../images/en.png') left no-repeat;padding-left: 32px; margin: 10px} +li.es {background: url('../../images/es.png') left no-repeat;padding-left: 32px; margin: 10px} +li.ja {background: url('../../images/ja.png') left no-repeat;padding-left: 32px; margin: 10px} +li.zh {background: url('../../images/zh.png') left no-repeat;padding-left: 32px; margin: 10px} +li.ko {background: url('../../images/ko.png') left no-repeat;padding-left: 32px; margin: 10px} \ No newline at end of file diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/resources/zh/css/site.css b/mybatis-spring-boot-test-autoconfigure/src/site/resources/zh/css/site.css new file mode 100644 index 00000000..9d3a3f75 --- /dev/null +++ b/mybatis-spring-boot-test-autoconfigure/src/site/resources/zh/css/site.css @@ -0,0 +1,29 @@ +/** + * Copyright 2015-2022 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/* + * when new flags are needed, take them from + * + * http://www.printableworldflags.com/flag-icon + * + * that are free for any kind of usage + */ + +ul.i18n {list-style-type:none;} +li.en {background: url('../../images/en.png') left no-repeat;padding-left: 32px; margin: 10px} +li.es {background: url('../../images/es.png') left no-repeat;padding-left: 32px; margin: 10px} +li.ja {background: url('../../images/ja.png') left no-repeat;padding-left: 32px; margin: 10px} +li.zh {background: url('../../images/zh.png') left no-repeat;padding-left: 32px; margin: 10px} +li.ko {background: url('../../images/ko.png') left no-repeat;padding-left: 32px; margin: 10px} \ No newline at end of file diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/site_zh.xml b/mybatis-spring-boot-test-autoconfigure/src/site/site_zh.xml new file mode 100644 index 00000000..272c5826 --- /dev/null +++ b/mybatis-spring-boot-test-autoconfigure/src/site/site_zh.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/mybatis-spring-boot-test-autoconfigure/src/site/zh/markdown/index.md b/mybatis-spring-boot-test-autoconfigure/src/site/zh/markdown/index.md index 21b1ed1b..1605b012 100644 --- a/mybatis-spring-boot-test-autoconfigure/src/site/zh/markdown/index.md +++ b/mybatis-spring-boot-test-autoconfigure/src/site/zh/markdown/index.md @@ -1,5 +1,14 @@ # 简介 +## 文档的翻译版本 + +可以阅读 MyBatis-Spring-Boot-Starter-Test 文档的以下翻译版本: + + + ## 什么是 MyBatis-Spring-Boot-Starter-Test? MyBatis-Spring-Boot-Starter-Test 为 [MyBatis-Spring-Boot-Starter](http://www.mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/) 中的 MyBatis 组件提供测试用例。