Answers for "spring boot example with swagger"

2

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/");
}
Posted by: Guest on December-09-2020
0

spring boot example with swagger

<!-- Spring Fox Dependencies -->
<dependency>
	<groupId>io.springfox</groupId>
	<artifactId>springfox-swagger2</artifactId>
	<version>2.9.2</version>
</dependency>
<dependency>
	<groupId>io.springfox</groupId>
	<artifactId>springfox-swagger-ui</artifactId>
	<version>2.9.2</version>
</dependency>
Posted by: Guest on January-26-2021

Code answers related to "spring boot example with swagger"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language