<mvc:resources>
can serve resources from the outside, you need to use the usual Spring resource path syntax:
<mvc:resources mapping="/images/**" location="file:/absolute/path/to/image/dir/"/>
More Related Contents:
- Spring 3 MVC resources and tag
- Spring: Difference of /** and /* with regards to paths
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- What is difference between @RequestBody and @RequestParam?
- Spring Hibernate – Could not obtain transaction-synchronized Session for current thread
- Spring Boot War deployed to Tomcat
- How do I prevent people from doing XSS in Spring MVC?
- Idea to avoid that spring.handlers/spring.schemas get overwritten when merging multiple spring dependencies in a single jar
- Spring Test & Security: How to mock authentication?
- File Upload with Angular2 to REST API
- How to test Spring’s declarative caching support on Spring Data repositories?
- Get AOP proxy from the object itself
- Disabling SSL Certificate Validation in Spring RestTemplate
- Bean injection inside a JPA @Entity
- How to manually log out a user with spring security?
- Can Spring Data REST’s QueryDSL integration be used to perform more complex queries?
- How to correctly use PagedResourcesAssembler from Spring Data?
- No mapping found for HTTP request with URI…. in DispatcherServlet with name [duplicate]
- spring – hibernate 5 naming strategy configuration
- AFTER upgrade from Spring boot 1.2 to 1.5.2, FileNotFoundException during Tomcat 8.5 Startup
- How does Spring Batch CompositeItemWriter manage transaction for delegate writers?
- JPA / JTA / @Transactional Spring annotation
- How to access plain json body in Spring rest controller?
- Combining basic authentication and form login for the same REST Api
- Access to Session using Spring JPA and Hibernate in order to enable filters
- Inject Service in ConstraintValidator [Bean Validator – JSR 303] Spring
- Spring @PostConstruct vs. init-method attribute
- Using Maven properties in application.properties in Spring Boot
- Spring Entities should convert to Dto in service?
- Adding custom RequestCondition’s in Spring mvc 3.1