Skip to content

Commit

Permalink
修改了 2.4.2 的文档,暂时移除了 Fenix XML 中的 xsd 校验和命名空间
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkfox committed Feb 3, 2021
1 parent 10c6e07 commit 06b5a78
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 37 deletions.
6 changes: 5 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# 🍹 版本更新记录 :id=title

## ⛳ v2.4.1 新增了 debug 模式和 bug 修复 🆕 (2021-01-02) :id=v241
## ⛸️ v2.4.2 小 bug 修复版本 🆕 (2021-02-03) :id=v241

- 修复了使用 `Pageable.unpaged()` 时的异常;

## ⛳ v2.4.1 新增了 debug 模式和 bug 修复 (2021-01-02) :id=v241

- 新增了 `debug` 模式,开启之后,可以在不重启服务的情况下,实时读取和解析 XML 文件中的 SQL;
- 修复 `<where />` 标签中在混合使用了逻辑控制语法和 XML 标签语法时,去除 `AND` 前缀的一些 bug;
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## 💎 特性 :id=features

- 简单、轻量级、无副作用的集成和使用,jar 包仅 `191 KB`
- 简单、轻量级、无副作用的集成和使用,jar 包仅 `192 KB`
- 作为 JPA 的扩展和增强,兼容 Spring Data JPA 原有功能和各种特性;
- 提供了 `XML`、Java 链式 `API` 和动态条件注解等四种方式来书写动态 SQL;
- `XML` 的方式功能强大,让 SQL 和 Java 代码解耦,易于维护;
Expand Down
4 changes: 2 additions & 2 deletions docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
![logo](assets/images/logo.png)

# Fenix <small>2.4.1</small>
# Fenix <small>2.4.2</small>

> 为解决复杂动态 SQL 而生的 Spring Data JPA 扩展库
- 🌱 简单、可扩展、轻量级 (~191 KB jar)
- 🌱 简单、可扩展、轻量级 (~192 KB jar)
- 🌴 可返回任意自定义的实体对象
- 🌿 比 MyBatis 更加强大的动态 SQL 能力
- 🌾 支持“增量更新”和更快速的“批量增删改”操作
Expand Down
8 changes: 4 additions & 4 deletions docs/quick-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
<dependency>
<groupId>com.blinkfox</groupId>
<artifactId>fenix-spring-boot-starter</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
```

### 🌵 2. Gradle :id=spring-boot-gradle

```bash
compile 'com.blinkfox:fenix-spring-boot-starter:2.4.1'
compile 'com.blinkfox:fenix-spring-boot-starter:2.4.2'
```

### 🏕️ 3. 激活 Fenix (@EnableFenix) :id=enable-fenix
Expand Down Expand Up @@ -98,14 +98,14 @@ fenix:
<dependency>
<groupId>com.blinkfox</groupId>
<artifactId>fenix</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
```

### 🌻 2. Gradle :id=project-gradle

```bash
compile 'com.blinkfox:fenix:2.4.1'
compile 'com.blinkfox:fenix:2.4.2'
```

### 🏔️ 3. 激活 Fenix :id=project-enable-fenix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public final class FenixConfigManager {
+ " | __)/ __ \\ / \\| \\ \\/ /\n"
+ " | \\\\ ___/| | \\ |> < \n"
+ " \\___ / \\___ >___| /__/__/\\_ \\\n"
+ " \\/ \\/ \\/ \\/ v2.4.1\n";
+ " \\/ \\/ \\/ \\/ v2.4.2\n";

/**
* Fenix 配置信息实例.
Expand Down
5 changes: 1 addition & 4 deletions src/test/resources/fenix/BlogRepository.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 这是用来测试 XML 模版或标签生成的 SQL语句或参数的 Fenix XML 文件. -->
<fenixs namespace="BlogRepository"
xmlns="http://www.w3school.com.cn"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3school.com.cn https://gitee.com/blinkfox/fenix/raw/master/fenix.xsd">
<fenixs namespace="BlogRepository">

<!-- 一个最简单的示例来查询我的博客信息. -->
<fenix id="querySimplyDemo">
Expand Down
5 changes: 1 addition & 4 deletions src/test/resources/fenix/UnitTestRepository.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 这是用来单元测试 XML 模版或标签生成的 SQL 的数据库操作运行时的 Fenix XML 仓库. -->
<fenixs namespace="UnitTestRepository"
xmlns="http://www.w3school.com.cn"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3school.com.cn https://gitee.com/blinkfox/fenix/raw/master/fenix.xsd">
<fenixs namespace="UnitTestRepository">

<fenix id="sqlHeader">
SELECT u FROM User AS u
Expand Down
5 changes: 1 addition & 4 deletions src/test/resources/fenix/UserRepository.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 这是用来测试 XML 模版或标签生成的 SQL语句或参数的 Fenix XML 文件. -->
<fenixs namespace="com.blinkfox.fenix.repository.UserRepository"
xmlns="http://www.w3school.com.cn"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3school.com.cn https://gitee.com/blinkfox/fenix/raw/master/fenix.xsd">
<fenixs namespace="com.blinkfox.fenix.repository.UserRepository">

<fenix id="UserHeader">
SELECT u FROM User AS u
Expand Down
5 changes: 1 addition & 4 deletions src/test/resources/fenix/fenix.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 这是用来测试 XML 模版或标签生成的 SQL语句或参数的 Fenix XML 文件. -->
<fenixs namespace="fenix"
xmlns="http://www.w3school.com.cn"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3school.com.cn https://gitee.com/blinkfox/fenix/raw/master/fenix.xsd">
<fenixs namespace="fenix">

<!-- 用于单元测试 equal 标签生成的 JPQL 语句和参数. -->
<fenix id="equal">
Expand Down
5 changes: 1 addition & 4 deletions src/test/resources/my/dir/xml/other-dir.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 这是用来 XML 文件在自定义的目录中. -->
<fenixs namespace="otherFenix"
xmlns="http://www.w3school.com.cn"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3school.com.cn https://gitee.com/blinkfox/fenix/raw/master/fenix.xsd">
<fenixs namespace="otherFenix">

<!-- 测试该多个 and 时移除 "1 = 1 AND " 的 SQL 片段 -->
<fenix id="queryUsersByName" removeIfExist="1 = 1 AND ">
Expand Down
5 changes: 1 addition & 4 deletions src/test/resources/myfenix/my.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 这是用来 XML 文件在自定义的目录中. -->
<fenixs namespace="defaultFenix"
xmlns="http://www.w3school.com.cn"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3school.com.cn https://gitee.com/blinkfox/fenix/raw/master/fenix.xsd">
<fenixs namespace="defaultFenix">

<!-- 测试该多个 and 时移除 "1 = 1 AND " 的 SQL 片段 -->
<fenix id="queryUsersByName" removeIfExist="1 = 1 AND ">
Expand Down
5 changes: 1 addition & 4 deletions src/test/resources/others/fenix-xml.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 这是用来测试当配置了具体的 XML 文件路径时是否能扫描到该 XML 文件. -->
<fenixs namespace="myFenixXml"
xmlns="http://www.w3school.com.cn"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3school.com.cn https://gitee.com/blinkfox/fenix/raw/master/fenix.xsd">
<fenixs namespace="myFenixXml">

<!-- 查询所有用户信息. -->
<fenix id="queryAllUsers">
Expand Down

0 comments on commit 06b5a78

Please sign in to comment.