我有以下问题:我正在尝试将一个完整的引导模板添加到我的maven项目中。我将以下依赖项添加到我的pom.xml:
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>3.3.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery</artifactId>
<version>3.0.0</version>
<scope>test</scope>
</dependency>然后,我将该模板的所有文件添加到我的资源/模板文件夹中,因为我正在使用胸腺叶。因此,只显示了属性的结构,但缺少引导设计。
你能帮我吗?
发布于 2021-09-21 06:35:59
这就是你怎么做的:(我使用的是胸腺叶,但即使没有,这也应该很容易做到)
打开官方bootstrap repo:https://getbootstrap.com/docs/4.0/getting-started/download/
下的文件中

然后,使用标记在您的
th:href)中包含这个文件:<link th:href="@{/CSS/bootstrap.min.css}" rel="stylesheet">https://stackoverflow.com/questions/49547502
复制相似问题