java - How to read static files from jar useing Spring MVC? -


this question has answer here:

how can use spring mvc read static files jar, used

<mvc:resources mapping="/static/**" location="classpath*:/static"/>; 

, didn't work.

i solved it, must use classpath, not classpath*, when using classpath, spring make classpathresource not servletcontextresource usual.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -