以下是简单的弹簧程序,在这个例子中我如何使用swagger? 是否可以使用以下示例的招摇?
以下是Controller
类
@Controller
public class HelloController{
@RequestMapping("/welcome")
public ModelAndView HelloWorld() {
ModelAndView m=new ModelAndView("HelloPage");
m.addObject("WelcomeMesage","Hi User,welcome");
return m;
}
@RequestMapping("/Hi")
public ModelAndView HiWorld() {
ModelAndView m=new ModelAndView("HelloPage");
m.addObject("WelcomeMesage","Hi User,welcome");
return m;
}
}