Tomcat Server local build and configuration under Idea software, and test run of the project (based on the web under the SUPERMVC framework)

Source: Internet
Author: User
Tags tomcat server apache tomcat

I. Declaration

A web framework using SPRINGMVC-based SUPERMVC is used. The framework of the internship company.

Second, the download and installation of Tomact

1 Choose the JDK and JRE version for your PC configuration (official website from Tomcat http://tomcat.apache.org/whichversion.html)

My computer is the Java version is 8, so I can choose any version of Apache Tomcat versions.

PS: If you ask me, Java version how to see. (ー?ー| | | ) (1) Enter java-version on the command line

(2) In the advanced system settings to find the environment variables, go to the folder under the path, view, see the picture, so you can also see the version.

2. Installation process

Along the way the default, you can, and then here, the path is the installation path of your own JRE.

Then it appears, this we need to change the path, can not be installed in the C-disk, you change a disk to put this (PS: Other disk folder not in Chinese)

The path after the change is complete:

Then the installation will be done by default.

The folder after installation is as shown

3. Test whether the installation is successful

1. Go to the Bin folder, select Tomcat8w.exe, click Enter, and this appears as shown in

, click Start, start the Tomcat server, and then automatically go to a webpage, and see if the path to the Web is the path to the server. Yes, it's a success, or there's a problem. Cause: You installed Tomcat before you uninstalled it without completely uninstalling, you re-install Tomcat.

At the same time, you have this in the lower right corner: (Ps:tomcat server running in the background)

Three, configure the project under the IDE and deploy Tomcat (under IDE configuration Tomcat). (There are two sections: 1, configuration items; 2, deploying Tomcat) Don't ask me what is IDE, own Baidu, I was just beginning with the IDE,

(i), configuration items

1. Build Your own project (import your own project)

I chose to import my own project. :

2. Configure the default Structure settings section

What appears: (Note the third part: the output of the compilation result.) Find a folder to store it yourself)

3, the configuration of the project structure (modules configuration)(PS: We have just configured the default structure (project))

Create a new framework that we need to use, or you can import a framework that has already been successful. (PS: I import Framework)

4, configuration Artifacts(PS: is an output configuration, my framework requirements are under the Web-inf folder)

(ii) Deployment of Tomact

1. Open the editing structure

2, add a new configuration, click "+" number

3. Select the Tomcat server

4. Start configuration

Part of content 1 and part of Figure 2

Figure 1

Figure 2

The specific configuration is as follows:

1 "Take a name and configuration (English) Select the tomcat you just installed, note: Configure content

2 "Configure content is as follows:

(1) Name

(2) path (two paths all pointing to the Tomcat installation path)

(3) Add 2 packs

3 "Browser-related configuration, Select your project's Web project HTML file, the specific options see the figure below

4 "Depoyment part

5 "The following is the successful completion of the Tomcat deployment

5. Run the test

1 "This error occurred

Description: The localhost:1099 port has been accounted for and replaced by a port

2 "Find run-" Edit structure (or edit structure with direct click)

3 "Modify port number

Modify the port number to 1000.

4 "This error occurred

Then change it to 8083.

5 "Successful operation

Above the installation of Tomcat, as well as the project configuration under the IDE, as well as the deployment of Tomcat .....

Tomcat Server local build and configuration under Idea software, and test run of the project (based on the web under the SUPERMVC framework)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.