Skip to content

Commit b0a0738

Browse files
polish Implementation to use Dates
1 parent cbde6bd commit b0a0738

File tree

5 files changed

+177
-109
lines changed

5 files changed

+177
-109
lines changed

open-api-spring-boot/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
https://editor.swagger.io/
55

66
### Useful Links
7-
* Swagger UI: http://localhost:8081/swagger-ui.html
8-
* Actuator Endpoint: http://localhost:8081/actuator
7+
* Swagger UI: http://localhost:8080/swagger-ui.html
8+
* Actuator Endpoint: http://localhost:8080/actuator

open-api-spring-boot/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<relativePath/> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>org.example</groupId>
13-
<artifactId>openapi</artifactId>
13+
<artifactId>open-api-spring-boot</artifactId>
1414
<version>0.0.1-SNAPSHOT</version>
1515

1616
<properties>
@@ -127,11 +127,11 @@
127127
<apiPackage>org.example.openapi.api</apiPackage>
128128
<modelPackage>org.example.openapi.model</modelPackage>
129129
<supportingFilesToGenerate>
130-
ApiUtil.java
130+
ApiUtil.java,RFC3339DateFormat.java
131131
<!-- ClientConfiguration.java,ApiKeyRequestInterceptor.java -->
132132
</supportingFilesToGenerate>
133133
<configOptions>
134-
<delegatePattern>true</delegatePattern>
134+
<delegatePattern>true</delegatePattern>
135135
<useSpringBoot3>true</useSpringBoot3>
136136
<!-- <async>true</async> -->
137137
<serializableModel>true</serializableModel>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package org.example.openapi.config;
2+
3+
import org.springframework.context.annotation.Configuration;
4+
5+
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
6+
import io.swagger.v3.oas.annotations.info.Info;
7+
import io.swagger.v3.oas.annotations.servers.Server;
8+
9+
@Configuration(proxyBeanMethods = false)
10+
@OpenAPIDefinition(
11+
info = @Info(title = "open-api-spring-boot-contract-first", version = "v1"),
12+
servers = @Server(url = "/"))
13+
public class SpringDocConfiguration {
14+
15+
}

0 commit comments

Comments
 (0)