Spring <mvc:resources /> returns 404 error -
i can't mvc:resources
work, returns http 404 error. relevant part of applicationcontext.xml:
<mvc:resources mapping="/resources/**" location="file:///c:/users/asus/desktop/app_images/" />
i have .jpeg file in folder c:/users/asus/desktop/app_images called "user_dfd3f052138649fe8e76fb46e62e2417.jpeg". if go address http://localhost:8084/pro/resources/user_dfd3f052138649fe8e76fb46e62e2417.jpeg http 404 error, can image url file:///c:/users/asus/desktop/app_images/user_dfd3f052138649fe8e76fb46e62e2417.jpeg
potentially relevant part of deployment descriptor file:
<context-param> <param-name>contextconfiglocation</param-name> <param-value>/web-inf/applicationcontext.xml</param-value> </context-param> <context-param> <param-name>imagesfolderroot</param-name> <!--<param-value>/home/asus/app_images/pro</param-value>--> <param-value>c:\users\asus\desktop\app_images</param-value> </context-param> <context-param> <param-name>alloweduploadimageextensions</param-name> <param-value>image/jpg,image/png,image/jpeg</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.contextloaderlistener</listener-class> </listener>
Comments
Post a Comment