百度搜索 webjars 官网, 然后获取自己对应jar的依赖。
比如Bootstrap
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>4.4.1</version>
</dependency>
前端
<html lang="en" xmlns:th="http://www.thymeleaf.org">
采用springboot支持的 thymeleaf 模板引擎
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<link th:href="@{/webjars/bootstrap/4.4.1/css/bootstrap.css}" rel="stylesheet">
webjars是项目目录maven文件中bootstrap的子文件夹