yubin пре 1 недеља
родитељ
комит
6a73c88f2d

+ 2 - 2
cif-service/src/main/java/com/txz/cif/configurer/MyWebMvcConfigurer.java

@@ -134,12 +134,12 @@ public class MyWebMvcConfigurer implements WebMvcConfigurer {
                     logger.info(e.getMessage());
                 } else if (e instanceof NoHandlerFoundException) {
                     result.setCode(ResultCode.NOT_FOUND.getCode()).setMessage(
-                            "接口 [" + request.getRequestURI() + "] 不存在");
+                            LocalUtil.get("interface")+" [" + request.getRequestURI() + "] "+LocalUtil.get("does.not.exist"));
                 } else if (e instanceof ServletException) {
                     result.setCode(ResultCode.FAIL.getCode()).setMessage(e.getMessage());
                 } else {
                     result.setCode(ResultCode.INTERNAL_SERVER_ERROR.getCode()).setMessage(
-                            "接口 [" + request.getRequestURI() + "] 内部错误,请联系管理员");
+                            LocalUtil.get("interface")+" [" + request.getRequestURI() + "] "+LocalUtil.get("internal.error.please.contact.the.administrator"));
                     String args = "";
                     String requestAccept = request.getHeader("Content-Type");
                     String contentType = "text/html";

+ 7 - 0
cif-service/src/main/resources/static/i18n/messages_en.properties

@@ -125,5 +125,12 @@ account.not.found=account not found
 account.not.found=account not found
 increment.factor.must.be.greater.than.0=increment factor must be greater than 0
 
+interface=interface
+does.not.exist=does not exist
+internal.error.please.contact.the.administrator=internal error please contact the administrator
+exception.occurred=exception occurred
+method=method
+exception.summary=exception summary:
+
 
 

+ 6 - 1
cif-service/src/main/resources/static/i18n/messages_en_US.properties

@@ -122,5 +122,10 @@ account.not.found=account not found
 account.not.found=account not found
 increment.factor.must.be.greater.than.0=increment factor must be greater than 0
 
-
+interface=interface
+does.not.exist=does not exist
+internal.error.please.contact.the.administrator=internal error please contact the administrator
+exception.occurred=exception occurred
+method=method
+exception.summary=exception summary:
 

+ 7 - 0
cif-service/src/main/resources/static/i18n/messages_zh_CN.properties

@@ -126,6 +126,13 @@ account.not.found=\u8D26\u53F7\u672A\u627E\u5230
 account.not.found=\u8D26\u53F7\u672A\u627E\u5230
 increment.factor.must.be.greater.than.0=\u9012\u589E\u56E0\u5B50\u5FC5\u987B\u5927\u4E8E0
 
+interface=\u63A5\u53E3
+does.not.exist=\u4E0D\u5B58\u5728
+internal.error.please.contact.the.administrator=\u5185\u90E8\u5F02\u5E38\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458
+exception.occurred=\u53D1\u751F\u5F02\u5E38
+method=\u65B9\u6CD5
+exception.summary=\u5F02\u5E38\u6982\u8981:
+