File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/com/regexplanet Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1313import java .util .regex .Pattern ;
1414
1515import org .springframework .stereotype .Controller ;
16- import org .springframework .web .bind .annotation .GetMapping ;
16+ import org .springframework .web .bind .annotation .RequestMapping ;
17+ import org .springframework .web .bind .annotation .RequestMethod ;
1718import org .springframework .web .bind .annotation .RequestParam ;
1819import org .springframework .web .util .HtmlUtils ;
1920
@@ -44,7 +45,7 @@ boolean stringToBoolean(String s)
4445 }
4546
4647
47- @ GetMapping ( "/test.json" )
48+ @ RequestMapping ( value = "/test.json" , method = { RequestMethod . GET , RequestMethod . POST } )
4849 public void handle (jakarta .servlet .http .HttpServletResponse resp ,
4950 @ RequestParam (required = false ) String regex ,
5051 @ RequestParam (required = false ) String replacement ,
You can’t perform that action at this time.
0 commit comments