org.springdoc.sample2.HomeController Maven / Gradle / Ivy
package org.springdoc.sample2;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
/**
* Home redirection to swagger api documentation
*/
@Controller
public class HomeController {
@GetMapping(value = "/")
public String index() {
return "redirect:swagger-ui.html";
}
}