@RequestMapping(value = "/analyst/getcompany/{user}", method = RequestMethod.GET, produces = "application/json")
public String getEmail(@PathVariable String user) {
//logic
}
請求此URI與時:REST API在Spring與參數作爲電子郵件ID給HTTP狀態406
"analyst/getcompany/[email protected]"
這是給HTTP狀態406
我用編碼的%@ 40但電子郵件ID中的{。}正在創建問題。如何處理這個?
[Spring MVC的@PathVariable的可能的複製與點(末尾添加斜線。)被截斷](https://stackoverflow.com/questions/16332092/spring-mvc-pathvariable-with-dot-is-getting-truncated) – alfcope