I'm beginner in Java EE and I read in resources that Standard directory structure of Java EE is this way :
but when I create a new project in intellij idea, directory structure of that is this way :
Now I'm Confused because of some reasons.
in Standard, WEB-INF is in same level with src but in Intellij type WEB-INF is in "web" directory.
in Intellij type , WEB-INF does not have "classes" and "lib" directory. instead of that, there is a "lib" directory in same level with src and "web"
can anyone please explain it for me ?
Both are correct.
The Java EE standard applies to the packaged web application.
IntelliJ uses a structure that applies to the source code. I would recommend using the Maven standard.
IntelliJ follows that standard when you create a web artifact. It does not have a /lib folder because you should be managing your dependencies using Maven. It does not have a /classes folder because that should be generated each time in your /target folder.
You need to tell IntelliJ how to create the web config as an artifact.
None of the generated assets should be committed into your source code management system (e.g. Git).