This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 9269b8598 fix issue: an error occurs when saving modified Dictionary.
Because there is no enable item. (#4000)
9269b8598 is described below
commit 9269b8598555d2c806e4df8ec974764304cf7abb
Author: Wu Daifu <[email protected]>
AuthorDate: Mon Sep 26 22:41:30 2022 +0800
fix issue: an error occurs when saving modified Dictionary. Because there
is no enable item. (#4000)
---
.../src/main/java/org/apache/shenyu/admin/model/dto/ShenyuDictDTO.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/ShenyuDictDTO.java
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/ShenyuDictDTO.java
index 4de1bfc81..c6edc5bfa 100644
---
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/ShenyuDictDTO.java
+++
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/ShenyuDictDTO.java
@@ -76,8 +76,7 @@ public class ShenyuDictDTO implements Serializable {
/**
* whether enabled.
*/
- @NotNull
- private Boolean enabled;
+ private Boolean enabled = true;
public ShenyuDictDTO() {
}