gpt4 book ai didi

forms - modelAttribute 和 commandName 的区别

转载 作者:IT老高 更新时间:2023-10-28 13:47:36 31 4
gpt4 key购买 nike

发送表单数据时使用commandName和modelAttribute有什么区别?

<form:form method="post" modelAttribute="csvFileUploadVO">

<form:form method="post" commandName="csvFileUploadVO">

我应该在哪个时间点使用它们中的任何一个?

最佳答案

没有区别,由于历史原因存在两种不同的属性。

关于forms - modelAttribute 和 commandName 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12404340/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com