播放:将WebJar内容解压到某个路径

Play: extract the WebJar contents to a certain path

根据 WebJars documentation

Play automatically extracts the WebJar contents and makes them available via the Assets controller.

有办法改变吗?

而不是 /assets/lib/bootstrap/css/bootstrap.css 我需要 /myProject/assets/lib/bootstrap/css/bootstrap.css

如果您只想更改 URL 路由中的前缀,那么您可以在 conf/routes 文件中更改静态资产控制器的路由。