<dependency> <groupId>org.webjars</groupId> <artifactId>webjars-locator-core</artifactId> <version>0.46</version> </dependency> groovy implementation 'org.webjars:webjars-locator-core:0.46' import org.webjars.WebJarAssetLocator; public class MyWebApp { public static void main(String[] args) { WebJarAssetLocator locator = new WebJarAssetLocator(); String assetPath = locator.getFullPath("jquery.min.js"); System.out.println("Asset path: " + assetPath); String resourceUrl = locator.getFullPath("jquery.min.js"); System.out.println("Resource URL: " + resourceUrl); } }


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