Is WEB-INF in the CLASSPATH?

Is WEB-INF in the CLASSPATH?

各自安好 发布于 2021-11-25 字数 98 浏览 853 回复 2 原文

Is the WEB-INF folder in the CLASSPATH of a Java Web application?

如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

扫码加入群聊

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

拥抱没勇气 2022-06-07 2 楼

Additionally files in WEB-INF are protected against being requested by the web-container, i.e. they are invisible to the outside world.

思念满溢 2022-06-07 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.