<dependency> <groupId>org.webjars</groupId> <artifactId>webjars-locator-core</artifactId> <version>0.40</version> </dependency> application.properties webjars-locator.enabled=true webjars-locator.skip-compression=true webjars-locator.build-timeout=60 application.yml yaml webjars-locator: enabled: true skip-compression: true build-timeout: 60 import org.webjars.WebJarAssetLocator; public class MyWebApp { public static void main(String[] args) { WebJarAssetLocator locator = new WebJarAssetLocator(); String jqueryUrl = locator.getFullPath("jquery.js"); } }


上一篇:
下一篇:
切换中文