From c94067ef6e49a4b7c07192ae862f21b9724bff23 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期四, 18 五月 2023 15:59:39 +0800
Subject: [PATCH] 数据源配置,通过ui配置application.yml
---
/dev/null | 27 ---------------------------
1 files changed, 0 insertions(+), 27 deletions(-)
diff --git a/src/main/java/com/zy/common/model/QuotedString.java b/src/main/java/com/zy/common/model/QuotedString.java
deleted file mode 100644
index ad784d9..0000000
--- a/src/main/java/com/zy/common/model/QuotedString.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.zy.common.model;
-
-public class QuotedString {
-
- public String value;
- public QuotedString(String value) {
- this.value = value;
- }
-}
diff --git a/src/main/java/com/zy/common/utils/MyRepresenter.java b/src/main/java/com/zy/common/utils/MyRepresenter.java
deleted file mode 100644
index 72f6124..0000000
--- a/src/main/java/com/zy/common/utils/MyRepresenter.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.zy.common.utils;
-
-import com.zy.common.model.QuotedString;
-
-import org.yaml.snakeyaml.DumperOptions;
-import org.yaml.snakeyaml.nodes.Node;
-import org.yaml.snakeyaml.nodes.Tag;
-import org.yaml.snakeyaml.representer.Represent;
-import org.yaml.snakeyaml.representer.Representer;
-
-public class MyRepresenter extends Representer {
-
- public MyRepresenter(){
- this.representers.put(QuotedString.class,new RepresenterQuotedString());
- }
- public class RepresenterQuotedString implements Represent {
- @Override
- public Node representData(Object o) {
- if (o instanceof QuotedString) {
- QuotedString str = (QuotedString) o;
- return representScalar(Tag.STR, str.value, DumperOptions.ScalarStyle.DOUBLE_QUOTED);
- }
- return null;
- }
- }
-
-}
--
Gitblit v1.9.1