Добрый вечер! есть форма ввода смс на шаблонизаторе - thymeleaf. проблема заключается после ввода смс значения не передается в контроллер, в чем может быть проблема?
форма:
<div class="box">
<form th:action="@{/test}" method="post">
<div class="mb-6 text-center">
<p>Мы отправили SMS с четырёхзначным кодом подтверждения на номер</p>
<div class="opt_text"><p>Введите код из смс</p></div>
<div id="otp" class="flex justify-center">
<input name="first" class="m-2 text-center form-control form-control-solid rounded focus:border-blue-400 focus:shadow-outline" type="text" id="first" maxlength="1"/>
<input name="second" class="m-2 text-center form-control form-control-solid rounded focus:border-blue-400 focus:shadow-outline" type="text" id="second" maxlength="1"/>
<input name="third" class="m-2 text-center form-control form-control-solid rounded focus:border-blue-400 focus:shadow-outline" type="text" id="third" maxlength="1"/>
<input name="forth" class="m-2 text-center form-control form-control-solid rounded focus:border-blue-400 focus:shadow-outline" type="text" id="fourth" maxlength="1"/>
</div>
<input type="submit" class="btn btn-primary" value="Подтверждение удаления">
</div>
</form>
</div>
контроллер:
@PostMapping("/test")
public void deletionResult(@RequestParam(value = "first") String first,
@RequestParam(value = "second") String second,
@RequestParam(value = "third") String third,
@RequestParam(value = "forth") String forth) {
System.out.println(first + second + third + forth);
}
log:
Error resolving template [test], template might not exist or might not be accessible by any of the configured Template Resolvers