简体   繁体   English

CLASSPATH中的WEB-INF?

[英]Is WEB-INF in the CLASSPATH?

WEB-INF Web应用程序的CLASSPATH中的WEB-INF文件夹是什么?

I'm assuming you're referring to the /WEB-INF directory in the root of the web application folder structure. 我假设您指的是Web应用程序文件夹结构的根目录中的/WEB-INF 目录

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 . /WEB-INF/classes虽然在类路径中,但/WEB-INF/lib中的JAR文件也是如此。

此外,WEB-INF中的文件受到保护,不受Web容器的请求,即它们对外界是不可见的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么类路径默认为WEB-INF / classes /而不是JBoss 5.1中的WEB-INF /? - Why does the classpath default to the WEB-INF/classes/ instead of WEB-INF/ in JBoss 5.1? 路径路由与/ WEB-INF /和classpath有什么区别 - what's the difference with the path route: /WEB-INF/ and classpath 有没有一种方法可以将web-inf / lib类路径添加到耳朵中的独立jar中? - Is there a way to add a web-inf/lib classpath to a standalone jar in an ear? 在Tomcat 5上控制WEB-INF / lib中jar的类路径排序? - Control the classpath ordering of jars in WEB-INF/lib on Tomcat 5? 在tomcat类路径中包含web-inf / lib中的目录 - Including a directory inside web-inf/lib in tomcat classpath 为什么我无法在类路径中使用getResourceAsStream读取属性文件(在WEB-INF / lib下) - Why I cant read properties file using getResourceAsStream when it is in classpath (under WEB-INF/lib) 使用Ant Build脚本创建WarFile时,如何在WEB-INF / lib文件夹中包含Classpath jars - How to include Classpath jars in WEB-INF/lib Folder while creating a WarFile using Ant Build Script 当WEB-INF / lib和CLASSPATH中包含同一Jar时,类强制转换异常 - Class Cast Exception When Same Jar is Included in WEB-INF/lib and CLASSPATH 如何在.classpath文件中为项目web-inf / lib设置jar文件路径 - How to set jar file path to project web-inf/lib in .classpath file CLASSPATH,Java Buld Path(eclipse)和WEB-INF \ LIB:使用什么,何时以及为什么? - CLASSPATH, Java Buld Path (eclipse), and WEB-INF\LIB : what to use, when, and why?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM