0
我需要在@RequestMapping
值中使用正則表達式,以便它可以接受日文字符以及英文字符。Springmvc RequestMapping接受任何語言的任何字符
我想這一點 -
@RequestMapping(value = "/Attendance_Report{[a-z0-9_\\p{Hiragana}\\p{Katakana}]+}", method = RequestMethod.GET)
它不工作時,日文字符出現在URL中。而下面沒有日文字符工作在請求URL -
@RequestMapping(value = "/Attendance_Report{[a-z0-9_]+}", method = RequestMethod.GET)
我應該把準確的價值屬性,以滿足我的要求?
爲 ......... ......我試過這個和上面說的RequestMapping。但它給HTTP 400. –
你的請求url是什麼樣的? –