Skip to content

Commit

Permalink
perf($Swagger): use new enhaced generation of Swagger UI; update M&F …
Browse files Browse the repository at this point in the history
…favicon

knife4j-spring-boot-starter
knife4j-micro-spring-boot-starter
M&F favicon

BREAKING CHANGE: use new enhaced generation of Swagger UI; update M&F favicon
  • Loading branch information
johnnymillergh committed Feb 25, 2020
1 parent 8b48392 commit 4b33cde
Show file tree
Hide file tree
Showing 37 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion demo-one/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>${spring-boot-admin-version}</version>
<version>${spring-boot-admin.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
Expand Down
2 changes: 1 addition & 1 deletion demo-one/src/main/resources/static/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>UNSET</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/home.css">
</head>
<body>
Expand Down
Binary file not shown.
Binary file modified demo-one/src/main/resources/static/icon/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion demo-one/src/main/resources/static/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>ExRx.net Crawler Server</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/video.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demo-two/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>${spring-boot-admin-version}</version>
<version>${spring-boot-admin.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
Expand Down
2 changes: 1 addition & 1 deletion demo-two/src/main/resources/static/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>UNSET</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/home.css">
</head>
<body>
Expand Down
Binary file not shown.
Binary file modified demo-two/src/main/resources/static/icon/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion demo-two/src/main/resources/static/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>ExRx.net Crawler Server</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/video.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion exercise-mis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>${spring-boot-admin-version}</version>
<version>${spring-boot-admin.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
Expand Down
2 changes: 1 addition & 1 deletion exercise-mis/src/main/resources/static/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>UNSET</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/home.css">
</head>
<body>
Expand Down
Binary file not shown.
Binary file modified exercise-mis/src/main/resources/static/icon/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion exercise-mis/src/main/resources/static/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>ExRx.net Crawler Server</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/video.css">
</head>
<body>
Expand Down
8 changes: 7 additions & 1 deletion gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>${spring-boot-admin-version}</version>
<version>${spring-boot-admin.version}</version>
</dependency>

<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>${knife4j.version}</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public RouterFunction<ServerResponse> doc() {

@Bean
public RouterFunction<ServerResponse> favicon() {
return route(GET("/webjars/bycdao-ui/images/api.ico"), request -> {
return route(GET("/favicon.ico"), request -> {
log.info("Redirect to Bootstrap Swagger API documentation.");
return ServerResponse.temporaryRedirect(URI.create("/static/icon/favicon.ico")).build();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@
* Change description here.
* <p>
* https://blog.csdn.net/ttzommed/article/details/81103609
* <p>
* TODO: Refactor this class.
*
* @author Johnny Miller (鍾俊), email: johnnysviva@outlook.com
* @date 2/15/20 5:40 PM
* @see
* <a href='https://doc.xiaominfo.com/guide/ui-front-gateway.html#%E6%96%87%E6%A1%A3%E8%81%9A%E5%90%88%E4%B8%9A%E5%8A%A1%E7%BC%96%E7%A0%81'>文档聚合业务编码</a>
**/
@Slf4j
@Component
Expand Down
2 changes: 1 addition & 1 deletion gateway/src/main/resources/static/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>UNSET</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/home.css">
</head>
<body>
Expand Down
Binary file not shown.
Binary file modified gateway/src/main/resources/static/icon/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion gateway/src/main/resources/static/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>ExRx.net Crawler Server</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/video.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion muscle-mis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>${spring-boot-admin-version}</version>
<version>${spring-boot-admin.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
Expand Down
2 changes: 1 addition & 1 deletion muscle-mis/src/main/resources/static/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>UNSET</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/home.css">
</head>
<body>
Expand Down
Binary file not shown.
Binary file modified muscle-mis/src/main/resources/static/icon/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion muscle-mis/src/main/resources/static/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>ExRx.net Crawler Server</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/video.css">
</head>
<body>
Expand Down
20 changes: 5 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
<developerUrl>https://www.linkedin.com/in/ijohnnymiller</developerUrl>
<java.version>11</java.version>
<spring-cloud.version>Hoxton.SR1</spring-cloud.version>
<spring-content-version>1.0.0.M5</spring-content-version>
<spring-boot-admin-version>2.2.2</spring-boot-admin-version>
<spring-content.version>1.0.0.M5</spring-content.version>
<spring-boot-admin.version>2.2.2</spring-boot-admin.version>
<knife4j.version>2.0.1</knife4j.version>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -262,21 +263,10 @@
</dependency>

<!-- Swagger: JSON API documentation for spring based applications -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
<exclusions>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>swagger-bootstrap-ui</artifactId>
<version>1.9.6</version>
<artifactId>knife4j-micro-spring-boot-starter</artifactId>
<version>${knife4j.version}</version>
</dependency>
</dependencies>
</project>
2 changes: 1 addition & 1 deletion service-registry/src/main/resources/static/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>UNSET</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/home.css">
</head>
<body>
Expand Down
Binary file not shown.
Binary file modified service-registry/src/main/resources/static/icon/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion service-registry/src/main/resources/static/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>ExRx.net Crawler Server</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/video.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-server</artifactId>
<version>${spring-boot-admin-version}</version>
<version>${spring-boot-admin.version}</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-admin/src/main/resources/static/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>UNSET</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/home.css">
</head>
<body>
Expand Down
Binary file not shown.
Binary file modified spring-boot-admin/src/main/resources/static/icon/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion spring-boot-admin/src/main/resources/static/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>ExRx.net Crawler Server</title>
<link rel="icon" type="image/png" sizes="96x96" href="icon/favicon-96x96.png">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="styles/video.css">
</head>
<body>
Expand Down

0 comments on commit 4b33cde

Please sign in to comment.