1717import java .net .URLDecoder ;
1818import java .util .Map ;
1919
20- import javax .servlet .http .HttpSession ;
20+ import jakarta .servlet .http .HttpSession ;
2121
2222import org .springframework .web .bind .annotation .GetMapping ;
2323import org .springframework .web .bind .annotation .PathVariable ;
@@ -61,7 +61,7 @@ public Parser<Long> newParser(HttpSession session, RequestMethod method) {
6161 */
6262 @ PostMapping (value = "{method}" ) // 如果和其它的接口 URL 冲突,可以加前缀,例如改为 crud/{method} 或 Controller 注解 @RequestMapping("crud")
6363 @ Override
64- public String crud (@ PathVariable String method , @ RequestBody String request , HttpSession session ) {
64+ public String crud (@ PathVariable ( "method" ) String method , @ RequestBody String request , HttpSession session ) {
6565 return super .crud (method , request , session );
6666 }
6767
@@ -87,7 +87,7 @@ public String crudAll(@RequestBody String request, HttpSession session) {
8787 */
8888 @ PostMapping ("{method}/{tag}" ) // 如果和其它的接口 URL 冲突,可以加前缀,例如改为 crud/{method}/{tag} 或 Controller 注解 @RequestMapping("crud")
8989 @ Override
90- public String crudByTag (@ PathVariable String method , @ PathVariable String tag , @ RequestParam Map <String , String > params , @ RequestBody String request , HttpSession session ) {
90+ public String crudByTag (@ PathVariable ( "method" ) String method , @ PathVariable ( "tag" ) String tag , @ RequestParam Map <String , String > params , @ RequestBody String request , HttpSession session ) {
9191 return super .crudByTag (method , tag , params , request , session );
9292 }
9393
@@ -99,7 +99,7 @@ public String crudByTag(@PathVariable String method, @PathVariable String tag, @
9999 * @see {@link RequestMethod#GET}
100100 */
101101 @ GetMapping ("get/{request}" )
102- public String openGet (@ PathVariable String request , HttpSession session ) {
102+ public String openGet (@ PathVariable ( "request" ) String request , HttpSession session ) {
103103 try {
104104 request = URLDecoder .decode (request , StringUtil .UTF_8 );
105105 } catch (Exception e ) {
0 commit comments