File tree Expand file tree Collapse file tree 3 files changed +6
-22
lines changed Expand file tree Collapse file tree 3 files changed +6
-22
lines changed Original file line number Diff line number Diff line change 88 <version >1.0.0-SNAPSHOT</version >
99
1010 <properties >
11- <version .spring>2.3.3.RELEASE </version .spring>
11+ <version .spring>2.7.18 </version .spring>
1212 </properties >
1313
1414
2626
2727 <!-- Needed to automatically generate the OpenAPI schema-->
2828 <dependency >
29- <groupId >io.springfox </groupId >
30- <artifactId >springfox-boot-starter </artifactId >
31- <version >3.0 .0</version >
29+ <groupId >org.springdoc </groupId >
30+ <artifactId >springdoc-openapi-ui </artifactId >
31+ <version >1.8 .0</version >
3232 </dependency >
3333 <dependency >
3434 <groupId >com.h2database</groupId >
Original file line number Diff line number Diff line change 22
33import org .springframework .boot .SpringApplication ;
44import org .springframework .boot .autoconfigure .SpringBootApplication ;
5- import org .springframework .context .annotation .Bean ;
6- import springfox .documentation .builders .PathSelectors ;
7- import springfox .documentation .spi .DocumentationType ;
8- import springfox .documentation .spring .web .plugins .Docket ;
95
106@ SpringBootApplication
117public class Application {
128
139 public static void main (String [] args ){
1410 /*
1511 Start application. Schema accessible at:
16- http://localhost:8080/swagger-ui/index.html
1712 http://localhost:8080/v3/api-docs
1813 */
1914 SpringApplication .run (Application .class );
2015 }
21-
22-
23- @ Bean
24- public Docket swaggerApi () {
25- /*
26- Needed to activate and configure the OpenAPI schema
27- */
28- return new Docket (DocumentationType .OAS_30 )
29- .select ()
30- .paths (PathSelectors .ant ("/api/**" ))
31- .build ();
32- }
3316}
Original file line number Diff line number Diff line change 1- spring.datasource.url =jdbc:h2:mem:testdb; DB_CLOSE_DELAY=-1;
1+ spring.datasource.url =jdbc:h2:mem:testdb; DB_CLOSE_DELAY=-1;
2+ springdoc.swagger-ui.enabled =true
You can’t perform that action at this time.
0 commit comments