Spring boot, Thymeleaf, Bootstrap

0

Mam problem z bootstrapem i thymeleafem, wszystko działa dobrze przy podglądzie w intellij, zaś gdy uruchamiam aplikacje to nie zostają załadowane bootstrapowe zasoby. Mozecie mi powiedzieć w czym problem? :(

Podglad: https://image.prntscr.com/image/Gb2zrFjPTCC2xRwkkCGOng.png
Po uruchomieniu aplikacji: https://image.prntscr.com/image/179XvUw7RI_iOscDoU59cg.png

test.html

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title></title>
    <link
          href="/bower_components/bootstrap/dist/css/bootstrap.min.css"
          th:href="@{/bower_components/bootstrap/dist/css/bootstrap.min.css}" rel="stylesheet"/>
</head>
<body>

<div class="container">

    <form class="form-signin">
        <h2 class="form-signin-heading">Please sign in</h2>
        <label for="inputEmail" class="sr-only">Email address</label>
        <input type="email" id="inputEmail" class="form-control" placeholder="Email address" />
        <label for="inputPassword" class="sr-only">Password</label>
        <input type="password" id="inputPassword" class="form-control" placeholder="Password" />
        <div class="checkbox">
            <label>
                <input type="checkbox" value="remember-me"/> Remember me
            </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
    </form>

</div>
</body>
</html>

src
├───main
│   ├───java
│   │   └───com
│   │       └───example
│   │           ├───model
│   │           ├───repostiroy
│   │           ├───utils
│   │           └───web
│   │               └───controller
│   └───resources
│       ├───static
│       └───templates
│           ├───bower_components
│           │   ├───bootstrap
│           │   │   ├───dist
│           │   │   │   ├───css
│           │   │   │   ├───fonts
│           │   │   │   └───js
│           │   │   ├───fonts
│           │   │   ├───grunt
│           │   │   ├───js
│           │   │   ├───less
│           │   │   │   └───mixins
│           │   │   └───nuget
│           │   └───jquery
│           │       ├───dist
│           │       ├───external
│           │       │   └───sizzle
│           │       │       └───dist
│           │       └───src
│           │           ├───ajax
│           │           │   └───var
│           │           ├───attributes
│           │           ├───core
│           │           │   └───var
│           │           ├───css
│           │           │   └───var
│           │           ├───data
│           │           │   └───var
│           │           ├───deferred
│           │           ├───effects
│           │           ├───event
│           │           ├───exports
│           │           ├───manipulation
│           │           │   └───var
│           │           ├───queue
│           │           ├───traversing
│           │           │   └───var
│           │           └───var
│           └───partials
0

Sprawdź czy zasoby które chcesz załadować na felernej stronie (CSS) są dostępne z przeglądarki.
Jakiś Firebug próbowałeś?

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