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 boot enable openapi swagger accessed

@Configuration
public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {

    @Override
    public void configure(WebSecurity web) throws Exception {
        web.ignoring().antMatchers("/v2/api-docs",
                                   "/configuration/ui",
                                   "/swagger-resources/**",
                                   "/configuration/security",
                                   "/swagger-ui.html",
                                   "/webjars/**");
    }

}
Comment

PREVIOUS NEXT
Code Example
Java :: android separator line in view 
Java :: java string replace character at position 
Java :: okhttp post 
Java :: long vs int java 
Java :: Difference between Public, Private and Protected modifier in Java? 
Java :: java replace a character at end of string 
Java :: android application class manifest 
Java :: How to build a Sudoku solver, in Java? 
Java :: how to change double to int in java 
Java :: java get relative path 
Java :: iterate thrpugh hasmap 
Java :: from date to string 
Java :: how to check base64 in java 
Java :: java how to compare strings 
Java :: java not equals string 
Java :: 123 movies 
Java :: dequeue in java 
Java :: java sort int array 
Java :: java replace element in list 
Java :: print array 
Java :: java final meaning 
Java :: override onbackpressed in fragment 
Java :: java standard exception 
Java :: java print stack 
Java :: java find if element of list in present in another list 
Java :: for and while loops java 
Java :: function overriding java 
Java :: how junit test getter and setter 
Java :: How do you count characters in a string array in Java? 
Java :: fixed length array powershell PSv5+ 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =