Home How to know webjars paths in Spring Boot. How to get paths of all available files in webjars
Reply: 1

How to know webjars paths in Spring Boot. How to get paths of all available files in webjars

Witold Kaczurba
1#
Witold Kaczurba Published in 2018-02-14 06:07:05Z

Many questions on SO refer to invalid paths for various resorces located in Spring-Boot webjars. Currently I have a problem with tether but I do not want to put another one specifically about tether's webjar files/paths, so want to ask:

  • Is there any easy way of seeing all contents available through @{/webjars /NAME}?
  • What is the easiest to debug invalid 404 webjar path in Spring Boot?
  • How can I see mappings of all that a webjar contains?

Cheers

PS: jquery, bootstrap work fine for me. My tether webjar does not.

<script th:src="@{/webjars/tether/1.4.3/js/tether.min.js}" crossorigin="anonymous"></script>
Witold Kaczurba
2#
Witold Kaczurba Reply to 2018-02-14 06:16:01Z

Silly me.

Look PROPERLY :D into the jar file,

Or even easier - look it up on the http://www.webjars.org webpage.
If you click link under "files" you will be able to see all jar contents, e.g:

https://www.webjars.org/listfiles/d3js/4.10.2

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.405439 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO