Is WEB-INF in the CLASSPATH?

前端 未结 2 1420
余生分开走
余生分开走 2020-12-03 00:40

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

相关标签:
2条回答
  • 2020-12-03 01:09

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

    0 讨论(0)
  • 2020-12-03 01:12

    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.

    0 讨论(0)
提交回复
热议问题