@@ -0,0 +1,802 @@
+package com.lance.springfox.web;%0A%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0A%0Aimport com.lance.springfox.domain.TreeInfo;%0A%0A@Controller%0A@RequestMapping(%22api/v1.0/home/%22)%0Apublic class HomeController %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%7D%0A

add home controller test class