Is the WEB-INF
folder in the CLASSPATH
of a Java Web application?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I'm assuming you're referring to the /WEB-INF
directory in the root of the web application folder structure.
No, it's not in the classpath.
/WEB-INF/classes
is on the classpath though, and so are the JAR files in /WEB-INF/lib
.
回答2:
Additionally files in WEB-INF are protected against being requested by the web-container, i.e. they are invisible to the outside world.