春天靴子我很新.所以我问的问题可能是因为我错过了一些东西.我使用spring boot 1.3和freemarker来构建一个网站.当我提交表格(我没有填写的某些属性,这是我需要的情况)时,我收到"400错误请求".但是,当我填写表单的所有属性并提交时,它可以工作.那么,原因是什么?我该如何解决?
表单是以下代码.
<label for="steelName" >??:</label>
<input type="text" id="steelName" name="steelName" placeholder="??" value="${steelName!}" required><br/>
<label for="steelCode" >??:</label>
<input type="text" id="steelCode" name="steelCode" placeholder="??" value="${steelCode!}" required><br/>
<label for="basic_price" >??:</label>
<input type="text" id="basicPrice" name="basicPrice" placeholder="2000" value="${basicPrice!}" required>
<label>?</label><br/>
<label for="steel_factory" >??:</label>
<input type="text" id="steelFactory" name="steelFactory" placeholder="????" value="${steelFactory!}" >
<label for="city" > ??:</label>
<input type="text" id="city" name="city" placeholder="??" value="${city!}" >
<br/>
<label for="width" >????:</label>
<input type="text" id="lowWidth" name="lowWidth" placeholder="1.0" value="${lowWidth!}" >
<label for=""> - </label>
<input type="text" id="highWidth" name="highWidth" placeholder="1.6" value="${highWidth!}" >
<label for=""> m …Run Code Online (Sandbox Code Playgroud)