I'm wondering what's the Spring way of serving static files. It should support:
Something like the following, but using the idioms of Spring 3...
You can make a @Controller
with @RequestMapping("/static/{resourceName}
and use the same logic as in BalusC's Servlet
As for gzip - use Tomcat's or Apache's configuration options.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.