package com.itranswarp.crypto.web.api.v1;
import com.itranswarp.crypto.ApiError;
import com.itranswarp.crypto.bean.ResponseWrapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @Author: wangwu
* @Date: Created in 11:00 2020-07-02
* @Description:
*/
@RestController
public class NotPathController {
@RequestMapping
public Object error(){
ResponseWrapper responseWrapper = new ResponseWrapper();
responseWrapper.setStatus(ResponseWrapper.STATUS_FAIL);
responseWrapper.setCode(ApiError.PATH_NOT_FOUND.name());
responseWrapper.setData("");
return responseWrapper;
}
}
转载请注明原文地址:https://ipadbbs.8miu.com/read-25008.html