首页>代码>Spring Boot学习(五)之使用Swagger2构建强大的RESTful API文档 博客源码分享>/springbootstudy-demo5/src/main/java/com/xiaojingg/web/HelloController.java
package com.xiaojingg.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import springfox.documentation.annotations.ApiIgnore; /** * 筱进GG */ @RestController public class HelloController { @ApiIgnore @RequestMapping(value = "/hello", method = RequestMethod.GET) public String index() { return "Hello World"; } }