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 13
13
import java .util .regex .Pattern ;
14
14
15
15
import 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 ;
17
18
import org .springframework .web .bind .annotation .RequestParam ;
18
19
import org .springframework .web .util .HtmlUtils ;
19
20
@@ -44,7 +45,7 @@ boolean stringToBoolean(String s)
44
45
}
45
46
46
47
47
- @ GetMapping ( "/test.json" )
48
+ @ RequestMapping ( value = "/test.json" , method = { RequestMethod . GET , RequestMethod . POST } )
48
49
public void handle (jakarta .servlet .http .HttpServletResponse resp ,
49
50
@ RequestParam (required = false ) String regex ,
50
51
@ RequestParam (required = false ) String replacement ,
You can’t perform that action at this time.
0 commit comments