依赖
<dependency>
<groupId>org.webjars</groupId>
<artifactId>webjars-locator</artifactId>
<version>0.39</version>
</dependency>
maven build 配置
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/static</directory>
<targetPath>${project.build.outputDirectory}/META-INF/resources/webjars</targetPath>
</resource>
</resources>
</build>