mirror of
https://gitee.com/wangkang/udf.git
synced 2026-10-23 16:13:49 +00:00
添加mq的相关配置
This commit is contained in:
+1
-1
@@ -156,7 +156,7 @@ public class ExceptionController extends AbstractErrorController {
|
||||
Exception exception = (Exception) object;
|
||||
//ZuulException异常特殊处理,去除ZuulException的包裹 (不用instanceof的原因是不想因为这里的判断而引入zuul的依赖在core包中)
|
||||
if (exception.getClass().getName().equals("com.netflix.zuul.exception.ZuulException")) { //NOSONAR
|
||||
if (exception.getCause() instanceof PermissionException) {
|
||||
if (exception.getCause() instanceof PermissionException) { // NOSONAR
|
||||
status = HttpStatus.FORBIDDEN; //NOSONAR
|
||||
} else if (exception.getCause() instanceof AuthException) {
|
||||
status = HttpStatus.FORBIDDEN; //NOSONAR
|
||||
|
||||
+4
-7
@@ -44,7 +44,6 @@ public class RmsResponseErrorHandler extends DefaultResponseErrorHandler {
|
||||
* @throws IOException 异常
|
||||
*/
|
||||
private String getData(InputStream in) throws IOException {
|
||||
String result = "";
|
||||
StringBuilder sb = new StringBuilder();
|
||||
BufferedReader br = new BufferedReader(new InputStreamReader(in, "utf-8"));
|
||||
String line;
|
||||
@@ -54,12 +53,10 @@ public class RmsResponseErrorHandler extends DefaultResponseErrorHandler {
|
||||
}
|
||||
br.close();
|
||||
} finally {
|
||||
if (result != null) {
|
||||
try {
|
||||
br.close();
|
||||
} catch (IOException e) {
|
||||
log.error("getData", e);
|
||||
}
|
||||
try {
|
||||
br.close();
|
||||
} catch (IOException e) {
|
||||
log.error("getData", e);
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
|
||||
Reference in New Issue
Block a user