Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jdk17-update-jwj
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
jdk17-update-jwj
Commits
1ed63cf5
提交
1ed63cf5
authored
8月 09, 2024
作者:
王林巧
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改replace
上级
3c237ae8
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
16 行增加
和
6 行删除
+16
-6
FileUpdaterManager.java
src/main/java/com/msl/FileUpdaterManager.java
+8
-5
Main.java
src/main/java/com/msl/Main.java
+2
-1
JavaNormalUpdater.java
src/main/java/com/msl/java/JavaNormalUpdater.java
+4
-0
XmlNormalUpdater.java
src/main/java/com/msl/xml/XmlNormalUpdater.java
+2
-0
没有找到文件。
src/main/java/com/msl/FileUpdaterManager.java
浏览文件 @
1ed63cf5
package
com
.
msl
;
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.java.JavaNormalUpdater
;
import
com.msl.xml.XmlNormalUpdater
;
import
com.msl.xml.XmlNormalUpdater
;
...
@@ -15,11 +18,11 @@ public class FileUpdaterManager {
...
@@ -15,11 +18,11 @@ public class FileUpdaterManager {
private
final
static
List
<
FileUpdater
>
UPDATERS
=
new
ArrayList
<>();
private
final
static
List
<
FileUpdater
>
UPDATERS
=
new
ArrayList
<>();
static
{
static
{
register
(
new
XmlNormalUpdater
());
//
register(new XmlNormalUpdater());
register
(
new
JavaNormalUpdater
());
//
register(new JavaNormalUpdater());
//
register(new FeignClassAnnotationUpdater());
register
(
new
FeignClassAnnotationUpdater
());
//
register(new FeignMethodAnnotationUpdater1());
register
(
new
FeignMethodAnnotationUpdater1
());
//
register(new FeignMethodAnnotationUpdater2());
register
(
new
FeignMethodAnnotationUpdater2
());
}
}
public
static
void
register
(
FileUpdater
fileUpdater
)
{
public
static
void
register
(
FileUpdater
fileUpdater
)
{
...
...
src/main/java/com/msl/Main.java
浏览文件 @
1ed63cf5
...
@@ -22,7 +22,8 @@ public class Main {
...
@@ -22,7 +22,8 @@ public class Main {
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
// doReplace("D:\\develop\\clx_projects\\msl-supervise\\supervise-web");
// 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-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
{
public
static
void
doReplace
(
String
path
)
throws
Exception
{
...
...
src/main/java/com/msl/java/JavaNormalUpdater.java
浏览文件 @
1ed63cf5
...
@@ -25,6 +25,7 @@ public class JavaNormalUpdater extends NormalUpdater {
...
@@ -25,6 +25,7 @@ public class JavaNormalUpdater extends NormalUpdater {
LIST
.
add
(
Pair
.
with
(
"@ApiModelProperty(value"
,
"@Schema(description"
));
LIST
.
add
(
Pair
.
with
(
"@ApiModelProperty(value"
,
"@Schema(description"
));
LIST
.
add
(
Pair
.
with
(
"@ApiModelProperty(\""
,
"@Schema(description=\""
));
LIST
.
add
(
Pair
.
with
(
"@ApiModelProperty(\""
,
"@Schema(description=\""
));
LIST
.
add
(
Pair
.
with
(
"@ApiModelProperty(hidden = true)"
,
"@Schema(hidden = true)"
));
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
(
"import io.swagger.annotations.Api;"
,
"import io.swagger.v3.oas.annotations.tags.Tag;"
));
LIST
.
add
(
Pair
.
with
(
"@Api(value"
,
"@Tag(name"
));
LIST
.
add
(
Pair
.
with
(
"@Api(value"
,
"@Tag(name"
));
...
@@ -38,6 +39,9 @@ public class JavaNormalUpdater extends NormalUpdater {
...
@@ -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
(
"import io.swagger.annotations.ApiParam;"
,
"import io.swagger.v3.oas.annotations.Parameter;"
));
LIST
.
add
(
Pair
.
with
(
"@ApiParam(\""
,
"@Parameter(name = \""
));
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 = \""
));
}
}
...
...
src/main/java/com/msl/xml/XmlNormalUpdater.java
浏览文件 @
1ed63cf5
...
@@ -19,6 +19,8 @@ public class XmlNormalUpdater extends NormalUpdater {
...
@@ -19,6 +19,8 @@ public class XmlNormalUpdater extends NormalUpdater {
//jdk相关
//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.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
(
"<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
(
"<groupId>javax.validation</groupId>"
,
"<groupId>jakarta.validation</groupId>"
));
LIST
.
add
(
Pair
.
with
(
"<artifactId>validation-api</artifactId>"
,
"<artifactId>jakarta.validation-api</artifactId>"
));
LIST
.
add
(
Pair
.
with
(
"<artifactId>validation-api</artifactId>"
,
"<artifactId>jakarta.validation-api</artifactId>"
));
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论