Create a picture virtual directory for your web app in IntelliJ idea (detailed screenshot)

Source: Internet
Author: User
Tags tmp folder

Create a picture virtual directory for your web app in IntelliJ idea (details)

    • Create a picture virtual directory for a web app in IntelliJ idea details
      • Engineering Configuration and Environment
      • Operation Steps
      • Configuring virtual Directories in a non-IDE environment

This article shows you how to add a virtual directory mapping to a web app in IntelliJ idea and attach steps

Engineering Configuration and Environment

The version I am using is

    • Tomcat 8.0.30
    • IntelliJ 15.0.2
    • JDK 1.8.0_25

A web app has been deployed and the Tomcat container has been added to idea, and now you want to add a picture virtual directory for this web app

Operation Steps
    • 1. Click on the toolbar to run the configurationEdit Configurations

    • 2. Select the Tomcat container in the pop-up Run/debug Configurations and choose deployment this tab

    • 3. Add the physical directory and set the virtual directory path

Here I choose the TMP folder under the D disk as the physical directory, the virtual directory set in order to /pic , I tried, although the slash is less also no impact, as can be accessed, but it is recommended to add it.

    • 4. Run the Web app to access the picture resources

Take a photo with the manager of the Bo

Here, you need to connect to the file name of the specific access resource, not to be accessed, as

Configuring virtual Directories in a non-IDE environment

How to configure virtual directory mapping for Tomcat can refer to the following blog:

Tomcat Configuration Virtual Directory mapping

Author @brianway More articles: personal website | CSDN | Oschina

Create a picture virtual directory for your web app in IntelliJ idea (details)

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.