Thymeleaf CSS не загружается - PullRequest
       1

Thymeleaf CSS не загружается

1 голос
/ 21 января 2020

Мне известно, что подобные проблемы были опубликованы сотни раз. Но я не смог найти похожие вещи.

Моя веб-страница, основанная на тимилфиле, не загружает содержимое c. Приложение работает на Spring Boot. Что-то не так с путями, объявленными в html?

Ниже пути к моим ресурсам:

-resources
--static
---css
---img 
---js 
---etc.

И образец заголовка страницы:

<head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="icon"  th:href="@{/img/express-favicon.png}" type="image/x-icon" />
        <title>RedCaynne Re</title>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">

        <link  th:href="@{/vendors/material-icon/css/materialdesignicons.min.css}" rel="stylesheet">
        <link  th:href="@{/css/font-awesome.min.css}" rel="stylesheet">
        <link th:href="@{/vendors/linears-icon/style.css}" rel="stylesheet">
        <link  th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

        <link  th:href="@{/vendors/revolution/css/settings.css}" rel="stylesheet">
        <link th:href="@{/vendors/revolution/css/layers.css}" rel="stylesheet">
        <link th:href="@{/vendors/revolution/css/navigation.css}" rel="stylesheet">

        <link th:href="@{/vendors/bootstrap-selector/bootstrap-select.css}" rel="stylesheet">
        <link th:href="@{/vendors/bootatrap-date-time/bootstrap-datetimepicker.min.css}" rel="stylesheet">
        <link th:href="@{/vendors/owl-carousel/assets/owl.carousel.css}" rel="stylesheet">

        <link  th:href="@{/css/style.css}" rel="stylesheet">
        <link  th:href="@{/css/responsive.css}" rel="stylesheet">

        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    </head> 

1 Ответ

0 голосов
/ 22 января 2020

OP-код работает нормально.

Подробнее о коде см. https://github.com/srikantha2/jm (это разветвлено из вашего кода OP)

enter image description here

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...