Skip to content

Commit

Permalink
feat(nacos 2.3.2): 适配最新的 nacos 2.3 微调API
Browse files Browse the repository at this point in the history
v0.0.3 发布
  • Loading branch information
lltx committed Jul 17, 2024
1 parent ed155a6 commit 4ba2531
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Nacos 从 2.2.0 版本开始,可通过 SPI 机制注入多数据源实现插件,并在引入对应数据源实现后,便可在 Nacos 启动时通过读取 application.properties 配置文件中 spring.datasource.platform 配置项选择加载对应多数据源插件.
Nacos 从 2.2.0 版本开始,可通过 SPI 机制注入多数据源实现插件,并在引入对应数据源实现后,便可在 Nacos 启动时通过读取
application.properties 配置文件中 spring.datasource.platform 配置项选择加载对应多数据源插件.

![Nacos 插件化实现
](https://minio.pigx.top/oss/202212/1671179590.jpg)
Expand All @@ -13,23 +14,31 @@ Nacos 从 2.2.0 版本开始,可通过 SPI 机制注入多数据源实现插件,

> 依赖已上传 maven 中央仓库,请勿使用阿里云代理
| NACOS 版本 | 插件版本 |
|---------------|-------|
| 2.2.0 - 2.3.0 | 0.0.2 |
| 2.3.1 - 2.3.2 | 0.0.3 |

```xml

<dependency>
<groupId>com.pig4cloud.plugin</groupId>
<artifactId>nacos-datasource-plugin-kingbase</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
</dependency>

<!--人大金仓数据库驱动-->
<!--人大金仓数据库驱动-->
<dependency>
<groupId>cn.com.kingbase</groupId>
<artifactId>kingbase8</artifactId>
<version>8.6.0</version>
<groupId>cn.com.kingbase</groupId>
<artifactId>kingbase8</artifactId>
<version>8.6.0</version>
</dependency>
```

### 2. 导入 nacos 人大金仓 数据库脚本

- 特殊设置: kingbase.conf , '' null 的转换

```shell
ora_input_emptystr_isnull = off
```
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.11</version>
<version>2.7.18</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

<modelVersion>4.0.0</modelVersion>
<groupId>com.pig4cloud.plugin</groupId>
<artifactId>nacos-datasource-plugin-kingbase</artifactId>
<version>0.0.4-SNAPSHOT</version>
<version>0.0.3</version>
<name>nacos-datasource-plugin-kingbase</name>
<description>nacos 人大金仓存储支持插件</description>
<url>https://pig4cloud.com</url>
Expand Down

0 comments on commit 4ba2531

Please sign in to comment.