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

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -