Web fragments (Servlet API 3.0) - Also modular resources in WEB-INF directory

StackOverflow https://stackoverflow.com/questions/20266568

  •  06-08-2022
  •  | 
  •  

سؤال

According to Servlet 3.0, a JAR placed in WEB-INF/lib has static content from its META-INF/resource directory accessible from the web-context root.

The specification doesn't say anything about modular resources, which should be accessible from the WEB-INF directory. I would like to create a modular project, where every module "adds" all files from its WEB-INF directory to the web-context/WEB-INF directory. Is it possible?

هل كانت مفيدة؟

المحلول

OK I understand.. Simply create a folder META-INF/resources/WEB-INF :)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top