Thymeleaf - problem z CSS na jednej stronie

0

Cześć

Stworzyłem apkę z wykorzystaniem Spring boota i silnika Thymeleaf . Dodałem arkusz styli bootstrapa i nie działa na jednej stronie gdzie jest formularz. Teoretycznie nie ma żadnego błędu, ale jak chcę edytować dane (forumularz służy również do edycji) to w logu Springa wyświetla się : "Failed to bind request element: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "theme.css" ". Nie wiem o co chodzi Springowi (poza tym, że ma problem z konwersacją String -> Integer), szczególnie w przypadku cssa.
Ktoś może mnie oświecić :)?

Pozdrawiam

0

Pokaż kod gdzie "importujesz" tego cssa

0

Podaje kod:

<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <title>Dodawanie zwierzaka</title>
    <link href="theme.css" rel="stylesheet"/>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
          type="text/css">
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
            integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
            crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
            integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
            crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
            integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
            crossorigin="anonymous"></script>
</head>
<body>
<div th:replace="menu :: header"></div>
<div class="py-5">
    <div class="container">
        <div class="row">
            <div th:if="${animals.id == null}">
                <div class="col-12 col-md-12">
                    <h2 class="text-center text-primary display-4">Dodawanie zwierzaka</h2>
                </div>
            </div>
            <div th:if="${animals.id != null}">
                <div class="col-12 col-md-12">
                    <h2 class="text-center text-primary display-4">Edycja</h2>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="py-5">
    <div class="container">
        <div class="row">
            <div class="col-md-5">
                <form th:action="@{/animals/add}" th:object=${animals} method="post">
                    <input th:field="*{id}" type="hidden"/>

                    <div class="form-group"><label>Imię:</label>
                        <input th:field="*{name}" type="text" id="name" class="form-control"
                               placeholder="Podaj imię"/>

                    </div>
                    <div class="form-group"><label>Ulubione jedzenie</label>
                        <input th:field="*{eat}" type="text" id="eat" class="form-control"
                               placeholder="Podaj jedzenie"/>
                    </div>
                    <div class="form-group"><label>Ulubiona zabawa</label>
                        <input th:field="*{toy}" type="text" id="toy" class="form-control"
                               placeholder="Ulubiona zabawa"/>
                    </div>
                   
                    <div class="form-group"><label>* Kategoria:</label></div>
                    <select th:field="*{category}">
                        <option th:each="value: ${animalCategory}" th:value="${value}" th:text="${value}"/>
                    </select>

                    <div class="form-group"><label> Komentarz/uwagi:</label>
                        <textarea th:field="*{comments}" rows="3" cols="30"/>
                    </div>
                    <div class="col-md-12 text-center">
                        <button type="submit" class="btn btn-primary btn-lg mr-3">Zapisz</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<div th:replace="footer :: footer"></div>
</body>
</html>

1 użytkowników online, w tym zalogowanych: 0, gości: 1