Static files in (Java) App Engine not accessible

前端 未结 4 490
被撕碎了的回忆
被撕碎了的回忆 2021-02-07 17:43

The example documentation says that you simply need to place your files in war/ (or a subdirectory) and they should be accessible from the host (as long as they aren\'t JSPs or

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-07 18:20

    Try manually defining the static files in appengine-web.xml like

    
      
      
            
    
    

    This works for me even with servlets like

    
     testServlet
     /
    
    

    and

    
     testServlet
     /*
    
    

    See Static Files and Resource Files

提交回复
热议问题