java - Referencing jar's web.xml inside project's xml -
i have jar(not war) having web.xml inside web-inf folder contains servlet-mapping(dispatcher servlet , reference config.xml containing rest related controller details). now, have put jar in classpath of different project , want use servlet mapping of jar inside project.
is possible load jar's web.xml through project's web.xml? or other way solving problem
this blog post explains it.
this possible in servlet 3.0 application.
the jar file must under web-inf/lib
, , descriptor must called web-fragment.xml , under meta-inf/
in jar file.
follow blog post , link spec more details.
Comments
Post a Comment