Spring : serving static resources outside context root

前端 未结 2 422
长发绾君心
长发绾君心 2020-12-02 18:54

in a web app, I need to serve static contents (images) located outside the application context directory. The overall application architecture requires me to use Tomcat to p

2条回答
  •  萌比男神i
    2020-12-02 19:36

    can serve resources from the outside, you need to use the usual Spring resource path syntax:

     
    

提交回复
热议问题