input输入的值传递到 th:href中,换个说法就是 th:href要能抓取到input框中的value
<input class="form-control mr-sm-2" type="text" th:name="carNum" placeholder="Search" th:id="carNumber" aria-label="Search">
<a type="button" class="btn btn-outline-success my-2 my-sm-0" th:href="@{/queryCar--此处要传递上面input值}">查找</a>