Servlet & Jsp | 2: idea configure a project JavaWeb

table of Contents

First, create a project in the Java Enterprise

Second, the WEB-INF classes and lib 2 new folders (Directory)

Third, the configuration java class bytecode compiler path - classes Folder

Fourth, the jar package configuration storage path - lib folder

5, configuration Tomcat 

Sixth, and finally we can modify the index.jsp page, click Run Project

end 


First, create a project in the Java Enterprise

After the finish, project structure shown below


Second, the WEB-INF classes and lib 2 new folders (Directory)


Third, the configuration java class bytecode compiler path - classes Folder


Fourth, configure the storage path of jar package - lib folder

 

 

 

 

After completing the three or four steps, classes and lib discovery Once configured, the color will change:


5, configuration Tomcat 

 

 

If you do not follow the fix, you can manually (with a fix please ignore the next figure) :

 

 

 Note: fight war inside the package is in the process of Artifacts

Sixth, and finally we can modify the index.jsp page, click Run Project

Because the configuration of the default browser, so after running the page will automatically pop up window if no configuration is required to manually enter localhost: 8080 / zq see the effect of the ~ ~

 

Well ~ JavaWeb a project idea to build under the Well, and has been bound tomcat, the tomcat files you do not need to manually deploy it! Run directly on the line



end 

No personal welcome attention to the public " chicken wings Programming" , here is a serious and well-behaved code agricultural one.

---- do the most well-behaved blog er, do the most solid programmer ----

Aims to carefully write each article, usually aggregated into notes will push updates -

 

Here Insert Picture Description

Published 138 original articles · won praise 63 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_43787043/article/details/104603786