1、安装Swagger插件
访问地址:
http://localhost:8080/fsoa.usermanager.web/swagger-ui.html#/
2、Controller层(参考)
package com.foriseland.open.controll;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.foriseland.fjf.rpc.storage.Request;
import com.foriseland.fjf.rpc.storage.Response;
import com.foriseland.fsoa.open.consumer.api.IProductApi;
import com.foriseland.fsoa.open