惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
Spread Privacy
Spread Privacy
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
SecWiki News
SecWiki News
腾讯CDC
P
Privacy International News Feed
Webroot Blog
Webroot Blog
J
Java Code Geeks
爱范儿
爱范儿
A
About on SuperTechFans
S
Secure Thoughts
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
D
DataBreaches.Net
Cloudbric
Cloudbric
Security Archives - TechRepublic
Security Archives - TechRepublic
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Security Latest
Security Latest
Forbes - Security
Forbes - Security
小众软件
小众软件
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cybersecurity and Infrastructure Security Agency CISA
T
Threatpost
量子位
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
W
WeLiveSecurity
P
Privacy & Cybersecurity Law Blog
Vercel News
Vercel News
Google Online Security Blog
Google Online Security Blog
云风的 BLOG
云风的 BLOG
GbyAI
GbyAI
S
Security @ Cisco Blogs
T
The Exploit Database - CXSecurity.com
Help Net Security
Help Net Security
V
Visual Studio Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 聂微东
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
Attack and Defense Labs
Attack and Defense Labs

博客园 - 王兴2008-偶想家了!

php构造数组,并把多数组插入php文件 Apache2服务无法启动--解决方法 晕 phpcms框架下的标签参数说明! 呵呵 痛苦后的一点小小发现!!! 解决.NET下Web项目打开失败的问题(转) suse linux 下TomCat安装 suse linux 下JDK安装 (转)Struts常见问题总结 session.flush机制(转)!!! 关于在java中List取值的方法(List中是数据对象)! 关于数据库中去掉数据空格的方法!!! 关于在CVS下无法获取更新的解决方法!!! Java开发者需坚守的十大基本准则(转) Windows2003之搭建FTP服务器 关于这几天倒数据的一些心得 关于数据库中重复的记录  的几种取出方法 IIS的各种身份验证详细测试(转) 给你绑定后的DropDownList加一个默认项!!! 一个生成 N 位随机数字的方法
关于tomcat默认页面的设置!!! - 王兴2008-偶想家了! - 博客园
王兴2008-偶想家了! · 2007-12-21 · via 博客园 - 王兴2008-偶想家了!

修改配置文件:   
    
   首先,修改$tomcat/conf/server.xml文件。   
   在server.xml文件中,有一段如下:   
   ……   
   <engine    name="Catalina"    defaultHost="localhost">   
         <host    name="localhost"    appBase="webapps"   
                 unpackWARs="true"    autoDeploy="true"   
                 xmlValidation="false"    xmlNamespaceAware="false">   
         ……   
         <host>   
   </engine>   
   ……   
   在<host></host>标签之间添加上:   
    
   <Context path="" docBase="D:\hbjobwork\WebRoot5" reloadable="true" crossContext="true" >

    
   path是说明虚拟目录的名字,如果你要只输入ip

就显示主页,则该键值留为空;   
    
   docBase是虚拟目录的路径,它默认的是$tomcat/webapps/ROOT目录,现在目录已经指向到D:\hbjobwork\WebRoot5目录,让该目录作为我的默认目录。   
    
   debug和reloadable一般都分别设置成0和true。   
    
   然后,修改$tomcat/conf/web.xml文件。   
   在web.xml文件中,有一段如下:   
           <welcome-file-list>   
                   <welcome-file>index.html</welcome-file>   
                   <welcome-file>index.htm</welcome-file>   
                   <welcome-file>index.jsp</welcome-file>   
           </welcome-file-list>   
   在<welcome-file-list>与<welcome-file>index.html</welcome-file>之间添加上:   
    
   <welcome-file>a.jsp</welcome-file>   
    
   保存上述两个文件后重启tomcat,在浏览器地址栏内输入"http://localhost:8080/",显示a.jsp页面的内容。