在使用 spring 表单时,在 jsp 页面中出现“预期等于”问题

Yuv*_*ath 2 java jsp spring-mvc

实际上,在映射输入字段中的路径时,我得到了这个异常,在这里我将添加 jsp 页面,在其中得到执行

<form:label path="firstName"> First Name<span class="req">*</span> </form:label> <form:input type="text" path="firstName" required autocomplete="off" />

小智 5

问题出在你的输入上

这是您的输入

<form:input type="text" path="firstName" required autocomplete="off" />
Run Code Online (Sandbox Code Playgroud)

这是预期的输入:

<form:input type="text" path="firstName" required="required" autocomplete="off" />
Run Code Online (Sandbox Code Playgroud)