@@ -0,0 +1,951 @@
+package com.lance.springfox.web;%0A%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0Aimport com.lance.springfox.domain.TreeInfo;%0A%0A@RestController%0A@RequestMapping(%22api/v1.0/%22)%0Apublic class IndexController %7B%0A%0A%09@RequestMapping(value=%22list%22, method=RequestMethod.GET)%0A%09public String list()%7B%0A%09%09return %22list%22;%0A%09%7D%0A%09%0A%09/**%0A%09 * %E6%A0%B9%E6%8D%AEID%E5%88%A0%E9%99%A4%E6%95%B0%E6%8D%AE%0A%09 * @param id %E6%A0%B9%E6%8D%AEID%E5%88%A0%E9%99%A4%E6%95%B0%E6%8D%AE%0A%09 * @return%0A%09 */%0A%09@RequestMapping(value=%22delete/%7Bid%7D%22, method=RequestMethod.GET)%0A%09public String delete(@PathVariable int id)%7B%0A%09%09return %22delete%22;%0A%09%7D%0A%09%0A%09@RequestMapping(value=%22save%22, method=RequestMethod.POST)%0A%09public String save(TreeInfo info)%7B%0A%09%09return %22save%22;%0A%09%7D%0A%09%0A%09@RequestMapping(value=%22detail/id_%7Bid%7D%22, method=RequestMethod.GET)%0A%09public String detail(@PathVariable int id)%7B%0A%09%09return %22detail%22;%0A%09%7D%0A%7D%0A

add index controller test