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
Post a Comment