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 configuration
Edit 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)