Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to enable swagger ui for springboot application

Swagger is accessible via a URL - http://localhost:8080/api/swagger-ui/index.html

       <dependency>
           <groupId>io.springfox</groupId>
           <artifactId>springfox-boot-starter</artifactId>
           <version>3.0.0</version>
       </dependency>
Comment

spring swagger

<dependency>
   <groupId>io.springfox</groupId>
   <artifactId>springfox-boot-starter</artifactId>
   <version>3.0.0</version>
</dependency>
Comment

spring boot example with swagger

@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
    registry.addResourceHandler("swagger-ui.html")
      .addResourceLocations("classpath:/META-INF/resources/");

    registry.addResourceHandler("/webjars/**")
      .addResourceLocations("classpath:/META-INF/resources/webjars/");
}
Comment

PREVIOUS NEXT
Code Example
Java :: from date to string 
Java :: java base64 
Java :: native insert query in jpa repository 
Java :: passing array by reference java 
Java :: list of integers in java 
Java :: okhttp3 library in android studio 
Java :: AndroidManifest.xml could not be found. 
Java :: java android edit text set value 
Java :: sum of array elements java 
Java :: java long to double 
Java :: fakultät in java 
Java :: parameterized constructor 
Java :: java sort int array 
Java :: java convert edittext to double 
Java :: arraylist .set java 
Java :: nested list java 
Java :: radio button in java 
Java :: final finally finalize 
Java :: how to check palindrome in java 
Java :: how to use arrays java 
Java :: java indexof all occurrences 
Java :: how to add string to array in java 
Java :: what does setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) is used for 
Java :: get last string separated by / 
Java :: how junit test getter and setter 
Java :: sorting list in java 
Java :: remove last character from stringbuffer 
Java :: how to change java version in pom.xml 
Java :: find last element in array in java 
Java :: java.lang.NullPointerException 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =