0
後、私はタイプのいくつかのURL持っているすべてを取得:それは変数のパスと考えるべきでは後に、私はすべてをしたい"/something/"
で始まるすべてのURLで"/something/some/random/path"
春@PathVariable/
を
@RequestMapping("/something/{path}")
public MyCustomObj get(@PathVariable("path") String path){
System.out.println(path); // "some/random/path"
}
私が知っていますリダイレクトでは可能ですが、必要なものではありません。 私は正規表現を試みたが、それを行うにはどのような方法、または多分いくつかの作業arroundsがあり
@RequestMapping("/spring-web/{path:.*}
を動作するようですしないのですか?
おかげ