Mapping a directory outside the web-app to URL in TOMCAT

后端 未结 3 815
难免孤独
难免孤独 2020-12-08 00:53

I need to map an directory containing images which resides outside tomcat webapps folder, so that application can serve those images.

I am making a J2EE Web applicat

3条回答
  •  庸人自扰
    2020-12-08 01:34

    in Tomcat8 you can also add PotsResources to you META-INF/context.xml as follow :

    
        
            
        
    
        ...
    
    

提交回复
热议问题