Skip to content

fix(entity): 修复数据源保存时密码无法入库问题#518

Merged
zxuexingzhijie merged 1 commit into
spring-ai-alibaba:mainfrom
gyl1041:fix/save-datasource-error
May 11, 2026
Merged

fix(entity): 修复数据源保存时密码无法入库问题#518
zxuexingzhijie merged 1 commit into
spring-ai-alibaba:mainfrom
gyl1041:fix/save-datasource-error

Conversation

@gyl1041
Copy link
Copy Markdown
Contributor

@gyl1041 gyl1041 commented May 8, 2026

Describe what this PR does / why we need it

这个问题造成新增数据源后密码无法落库,会出现新增的数据源一直连接失败。

Does this pull request fix one issue?

Fixes #493

Describe how you did it

经过排查发现是 Datasource 中的 @JsonIgnore 造成的,改为 @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) 解决问题

Describe how to verify it

可以通过接口 /api/datasource 验证

Special notes for reviews

@zxuexingzhijie zxuexingzhijie merged commit 3639052 into spring-ai-alibaba:main May 11, 2026
2 checks passed
@gyl1041
Copy link
Copy Markdown
Contributor Author

gyl1041 commented May 11, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 新增/修改数据源的时候,密码不会保存,导致连接失败

2 participants