@@ -87,7 +87,7 @@ public Parser<Long> newParser(HttpSession session, RequestMethod method) {
87
87
return parser ;
88
88
}
89
89
90
- public void parseAndReponse (RequestMethod method ) {
90
+ public void parseAndResponse (RequestMethod method ) {
91
91
renderJson (newParser (getSession (), method ).parse (HttpKit .readData (getRequest ())));
92
92
}
93
93
@@ -99,7 +99,7 @@ public void parseAndReponse(RequestMethod method) {
99
99
*/
100
100
@ Before (POST .class )
101
101
public void get () {
102
- parseAndReponse (GET );
102
+ parseAndResponse (GET );
103
103
}
104
104
105
105
/**计数
@@ -108,7 +108,7 @@ public void get() {
108
108
*/
109
109
@ Before (POST .class )
110
110
public void head () {
111
- parseAndReponse (HEAD );
111
+ parseAndResponse (HEAD );
112
112
}
113
113
114
114
/**限制性GET,request和response都非明文,浏览器看不到,用于对安全性要求高的GET请求
@@ -117,7 +117,7 @@ public void head() {
117
117
*/
118
118
@ Before (POST .class )
119
119
public void gets () {
120
- parseAndReponse (GETS );
120
+ parseAndResponse (GETS );
121
121
}
122
122
123
123
/**限制性HEAD,request和response都非明文,浏览器看不到,用于对安全性要求高的HEAD请求
@@ -126,7 +126,7 @@ public void gets() {
126
126
*/
127
127
@ Before (POST .class )
128
128
public void heads () {
129
- parseAndReponse (HEADS );
129
+ parseAndResponse (HEADS );
130
130
}
131
131
132
132
/**新增
@@ -135,7 +135,7 @@ public void heads() {
135
135
*/
136
136
@ Before (POST .class )
137
137
public void post () {
138
- parseAndReponse (POST );
138
+ parseAndResponse (POST );
139
139
}
140
140
141
141
/**修改
@@ -144,7 +144,7 @@ public void post() {
144
144
*/
145
145
@ Before (POST .class )
146
146
public void put () {
147
- parseAndReponse (PUT );
147
+ parseAndResponse (PUT );
148
148
}
149
149
150
150
/**删除
@@ -153,7 +153,7 @@ public void put() {
153
153
*/
154
154
@ Before (POST .class )
155
155
public void delete () {
156
- parseAndReponse (DELETE );
156
+ parseAndResponse (DELETE );
157
157
}
158
158
159
159
//通用接口,非事务型操作 和 简单事务型操作 都可通过这些接口自动化实现>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
0 commit comments