Commit 75c9aef3 authored by yaobaizheng's avatar yaobaizheng

解决knife4j与自定义统一返回冲突问题

parent d66096c1
......@@ -15,6 +15,7 @@ import org.springframework.http.server.ServerHttpResponse;
import org.springframework.validation.BindException;
import org.springframework.web.HttpRequestMethodNotSupportedException;
import org.springframework.web.bind.MissingPathVariableException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException;
......@@ -27,7 +28,7 @@ import javax.servlet.http.HttpServletRequest;
*
* @author yaobaizheng
*/
@RestControllerAdvice
@RestControllerAdvice(basePackages = "com.lyy.admin.moudle")
public class GlobalExceptionHandler implements ResponseBodyAdvice {
@Value("${liyeren.key}")
private String decryptKey;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment