提交 1ed63cf5 authored 作者: 王林巧's avatar 王林巧

修改replace

上级 3c237ae8
package com.msl;
import com.msl.java.FeignClassAnnotationUpdater;
import com.msl.java.FeignMethodAnnotationUpdater1;
import com.msl.java.FeignMethodAnnotationUpdater2;
import com.msl.java.JavaNormalUpdater;
import com.msl.xml.XmlNormalUpdater;
......@@ -15,11 +18,11 @@ public class FileUpdaterManager {
private final static List<FileUpdater> UPDATERS = new ArrayList<>();
static {
register(new XmlNormalUpdater());
register(new JavaNormalUpdater());
// register(new FeignClassAnnotationUpdater());
// register(new FeignMethodAnnotationUpdater1());
// register(new FeignMethodAnnotationUpdater2());
// register(new XmlNormalUpdater());
// register(new JavaNormalUpdater());
register(new FeignClassAnnotationUpdater());
register(new FeignMethodAnnotationUpdater1());
register(new FeignMethodAnnotationUpdater2());
}
public static void register(FileUpdater fileUpdater) {
......
......@@ -22,7 +22,8 @@ public class Main {
public static void main(String[] args) throws Exception {
// doReplace("D:\\develop\\clx_projects\\msl-supervise\\supervise-web");
// doReplace("D:\\develop\\clx_projects\\msl-common-starter\\log-spring-boot-starter");
doReplace("D:\\develop\\clx_projects\\msl-supervise-trade");
// doReplace("/Users/wanglinqiao/IdeaProjects/msl-supervise-trade");
doReplace("/Users/wanglinqiao/IdeaProjects/msl-transport-data/transport-data-api");
}
public static void doReplace(String path) throws Exception {
......
......@@ -25,6 +25,7 @@ public class JavaNormalUpdater extends NormalUpdater {
LIST.add(Pair.with("@ApiModelProperty(value", "@Schema(description"));
LIST.add(Pair.with("@ApiModelProperty(\"", "@Schema(description=\""));
LIST.add(Pair.with("@ApiModelProperty(hidden = true)", "@Schema(hidden = true)"));
LIST.add(Pair.with("@ApiModelProperty\n", "@Schema\n"));
LIST.add(Pair.with("import io.swagger.annotations.Api;", "import io.swagger.v3.oas.annotations.tags.Tag;"));
LIST.add(Pair.with("@Api(value", "@Tag(name"));
......@@ -38,6 +39,9 @@ public class JavaNormalUpdater extends NormalUpdater {
LIST.add(Pair.with("import io.swagger.annotations.ApiParam;", "import io.swagger.v3.oas.annotations.Parameter;"));
LIST.add(Pair.with("@ApiParam(\"", "@Parameter(name = \""));
LIST.add(Pair.with("import io.swagger.annotations.ApiModel;","import io.swagger.v3.oas.annotations.media.Schema;"));
LIST.add(Pair.with("@ApiModel(\"","@Schema(description = \""));
}
......
......@@ -19,6 +19,8 @@ public class XmlNormalUpdater extends NormalUpdater {
//jdk相关
LIST.add(Pair.with("<maven.compiler.source>8</maven.compiler.source>", "<maven.compiler.source>17</maven.compiler.source>"));
LIST.add(Pair.with("<maven.compiler.target>8</maven.compiler.target>", "<maven.compiler.target>17</maven.compiler.target>"));
LIST.add(Pair.with("<source>1.8</source>", "<source>17</source>"));
LIST.add(Pair.with("<target>1.8</target>", "<target>17</target>"));
LIST.add(Pair.with("<groupId>javax.validation</groupId>", "<groupId>jakarta.validation</groupId>"));
LIST.add(Pair.with("<artifactId>validation-api</artifactId>", "<artifactId>jakarta.validation-api</artifactId>"));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论