1. tomcat own virtual path
1.1. Configuring the tomcat \ config \ server.xml in
path = "/ upload" virtual path
E: \ photo \ upload pictures stored true path
<Context crossContext="true" docBase="E:\photo\upload" path="/upload" reloadable="true"></Context>
1.2.将Deploy applications configured in Tomcat instance勾上
After checking the deploy applications configured in tomcat instance, you can restart the idea normal browsing pictures.
2. Set the virtual path with idea
2.1.Deploy applications configured in Tomcat instance不要勾上
2.2. Setting a virtual path
2.3. Keywords set the read mapping virtual path / upload
After completion of the above settings, restart the idea, the resources of this folder can be like webapps / ROOT folder access as a