在配置 Tomcat serserver.xml 中配置
 <Context path="/image" docBase="E:\image" debug="0" reloadable="true"></Context> 
这个就是访问目录 ,可以直接访问  http://localhost:8080/image/ 

 

 <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
    
      <!-- 下面这个就是访问目录 ,可以直接访问 http://localhost:8080/image/ --> <Context path="/image" docBase="E:\image" debug="0" reloadable="true"></Context> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log." suffix=".txt"/> </Host>

 

相关文章:

  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-09-11
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
猜你喜欢
  • 2021-09-01
  • 2021-07-23
  • 2021-07-23
  • 2021-12-11
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案