web container uses the compiled project and some corresponding js,css,html to be placed in the webapp folder of tomcat after tomcat, development, and then start tomcat to access the project.
there are some build tools that will package the project into war packages, or jar packages (what exactly does this operation do? Do you only package .class files, or do you also include js,css,html files?)