0
我想給這個列表例如:的Json列表以字符串列表:Spring MVC的控制器
{"id":[1]}
到該控制器:
public String addUsersToProject(@RequestBody List<String> usersIds, @PathVariable String projectTitle){..}
但我不能閱讀列表:
Could not read document: Can not deserialize instance of java.util.ArrayList
任何建議將不勝感激,謝謝。
你使用傑克遜? – eg04lt3r
http://stackoverflow.com/questions/34789357/how-to-pass-liststring-in-post-method-using-spring-mvc這個問題已經有了答案 – Priyamal