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 :: Java void Keyword 
Java :: linear serach in java 
Java :: What would be the behavior if this() and super() used in a method? 
Java :: getstring java 
Java :: how to print each element of an arraylist on a new line in java 
Java :: how to take binary input in java 
Java :: arrays with for loops 
Java :: convert string to boolean java 
Java :: precision java 
Java :: java list change element position 
Java :: java array slicing 
Java :: Java How to use Deque? 
Java :: login.html 
Java :: java log4j example 
Java :: java creating an arraylist 
Java :: navigation bottom android 
Java :: encapsulation in java 
Java :: use custom font java 
Java :: Error: Could not find or load main class Hello Caused by: java.lang.ClassNotFoundException: Hello studio visual code 
Java :: radix sort 
Java :: java class 
Java :: string comparison using == in java 
Java :: what does system.out.println(y + " ") result 
Java :: Java public no-arg constructor 
Java :: android tab theme 
Java :: intergers are appearing as string in Json 
Java :: Note: flutterpluginspathproviderPathProviderPlugin.java uses unchecked or unsafe operations. 
Java :: functionality of consumer functional interface in java 
Java :: java resultset to object 
Java :: Show the difference between this() and super() with help of a code 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =