We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bb8ad5 commit a45b96aCopy full SHA for a45b96a
src/main/java/apijson/framework/APIJSONController.java
@@ -69,13 +69,20 @@ public class APIJSONController {
69
APIJSON_CREATOR = new APIJSONCreator();
70
}
71
72
+ public String getRequestURL() {
73
+ return null;
74
+ }
75
76
public Parser<Long> newParser(HttpSession session, RequestMethod method) {
77
Parser<Long> parser = APIJSON_CREATOR.createParser();
78
parser.setMethod(method);
79
if (parser instanceof APIJSONParser) {
80
((APIJSONParser) parser).setSession(session);
81
82
+ // 可以更方便地通过日志排查错误
83
+ if (parser instanceof AbstractParser) {
84
+ ((AbstractParser<?>) parser).setRequestURL(getRequestURL());
85
86
return parser;
87
88
0 commit comments