| | |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.multiTree.MultiTree; |
| | | import com.whyc.exception.first.CustomExceptionResultHandler; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("test") |
| | | @ApiIgnore |
| | | @Api(tags = "test") |
| | | @Slf4j |
| | | public class TestController { |
| | | |
| | | @GetMapping("test") |
| | |
| | | MultiTree tree = new MultiTree().saveAsTree(dateArr); |
| | | return new Response<MultiTree>().set(1,tree); |
| | | } |
| | | @GetMapping("test2") |
| | | @ApiOperation(value = "test2") |
| | | public Response test2(@RequestParam Integer num){ |
| | | System.out.println("执行了test2的方法1"); |
| | | log.info("哈哈"); |
| | | byte b = num.byteValue(); |
| | | System.out.println("执行了test2的方法"); |
| | | return new Response().set(1,num); |
| | | |
| | | } |
| | | |
| | | } |