URL (長さとパラメーター) に関係なく、すべてのリクエストを特定のコントローラーにリダイレクトするように Spring を構成したいと考えています。RequestMapping アノテーションで URL パターン/正規表現をどのように指定すればよいですか。以下のコードを使用してみましたが、うまくいきません。この点でどんな助けでも大歓迎です。
@Controller
@RequestMapping("/*")
public class ServiceController {
@RequestMapping( method = RequestMethod.GET, value = "*" )
public void getProjectList(HttpServletRequest httpServletRequest,Model model){
}
}