英文:
how to convert the data of value attribute of request parameter to string content in spring
问题
我想获取字符串数据类型中的"ticket id"的值
@RequestParam(value = "ticketId", required = false, defaultValue = "false")
如何获取"ticketId"的值并存储在字符串数据中。
之前我尝试过这样做
@RequestParam(value = "ticketId") String ticketId, required = false, defaultValue = "false"
英文:
i want to get the value of ticket id in string data Type
@RequestParam(value = "ticketId" , required = false, defaultValue = "false")
how can i get the value of ticketId in any string data.
Earlier i have tried to do this
***@RequestParam(value = "ticketId" String ticketId, required = false, defaultValue = "false")***
答案1
得分: 1
除了语法之外,一切都是正确的。
正确的语法:
@RequestParam(value = "ticketId", required = false) String ticketId
英文:
Everything except the syntax is correct.<br>Correct syntax:
<br>@RequestParam(value = "ticketId", required = false) String ticketId
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论