Alibabacloud.com offers a wide variety of articles about create restful web service java, easily find your create restful web service java information here online.
=internal , without this parameter, will be very slow when Maven builds the skeleton, and sometimes it will get stuck directly.Explanations from the Internet:
Archetypecatalog represents the plug-in uses the archetype metadata, does not add this parameter when the default is Remote,local, that is, the central warehouse archetype metadata, because the central warehouse archetype too much, so the result is very slow, Specify internal to indicate that only internal metadata is used.
N
Maven builds the skeleton, and sometimes it will get stuck directly.Explanations from the Internet:
Archetypecatalog represents the plug-in uses the archetype metadata, does not add this parameter when the default is Remote,local, that is, the central warehouse archetype metadata, because the central warehouse archetype too much, so the result is very slow, Specify internal to indicate that only internal metadata is used.
Next, fill in the project name and module name.Click Finish
Maven builds the skeleton, and sometimes it will get stuck directly.Explanations from the Internet:
Archetypecatalog represents the plug-in uses the archetype metadata, does not add this parameter when the default is Remote,local, that is, the central warehouse archetype metadata, because the central warehouse archetype too much, so the result is very slow, Specify internal to indicate that only internal metadata is used.
Next, fill in the project name and module name.Click Finish
installation directory and create two different home filesMkdir-p/usr/local/tomcat/aa/root/Mkdir-p/usr/local/tomcat/bb/root/echo "www.aa.com" >/usr/local/tomcat/aa/root/index.jspecho "www.bb.com" >/usr/local/tomcat/bb/root/index.jsp3. Restart Service, test4, the path of the site to jump. When accessing www.aa.com:8080/test, automatically jumps to /www/html/"(Create
Use Maven in eclipse to create a WebApp project, choose the following Archtype type:
The resulting project structure is as follows:
The default generated pom.xml files are as follows:
Note: Sevlet-api and Jsp-api Package Dependency dependency property scope = provided, because the Tomcat container itself provides these two jar packages, so it is only required at compile time. The runtime actually uses a jar package for the Tomcat container. T
First, manually write a Web program
1. Compose Web Directory
MyWebThe directory is the root directory for the Web project, typically the project nameMeta-inf Store Project Description informationThe Web-inf directory is not open to the public and holds the resources used by the projectClasses store
Environment: WIN10 64-bit, Eclipse (installed Tomcat plugin), Tomcat 6.0.45
Time: September 10, 2016 19:10:09 first, build Java-tomcat project
In Eclipse, select File-> New-> Other-> java-> Tomcat Project
Fill in the name of the project, and click Finish to
Ii. to prepare a HelloWorld Web page
First create a package (
Before you go to sleep, Alan will share with you the idea's installation and basic configuration. Use idea to create a Java Web and deploy access.Open Idea,file>new>project, enter Java Enterprise to create a Web application projec
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.