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

后端 未结 3 830
难免孤独
难免孤独 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:49

    Add a tag in server.xml, inside the tag:

    
    

    Docs will be accessible at http://localhost:8080/images

提交回复
热议问题