[Tomcat] differences between Tomcat 6 and tomcat 7

Source: Internet
Author: User

 

Tomcat 7最大的改进是对Servlet 3.0和Java EE 6的支持。
◆Tomcat 7完全支持Servlet 3.0规范
◆Tomcat 7新增了对Java注释的支持
◆Tomcat 7通过web.xml动态配置引用类库的功能
◆Tomcat 7改进了安全回话的跟踪
◆Tomcat 7重构了comet类,将comet类从org.apache.catalina包下移动到org.apache.catalina.comet包下面,这个改动让comet类可以工作在security manager管理之下
◆Tomcat 7改进了关系服务时候的功能,让关闭时的地址可以配置
◆Tomcat 7改进了启动类,目前Tomcat 7启动过程无须任何配置文件
◆Tomcat 7新增了配置参数,可以配置Tomcat 7的执行队列超时时间,和执行大大小限制
◆Tomcat 7修复了大量bug

参考地址有一些新特性的使用说明。

参考资料:
http://tomcat.apache.org/tomcat-7.0-doc/introduction.html
http://www.bitscn.com/pdb/java/201009/190950.html

 

一:tomcat6配置管理员信息
1:打开tomcat6下的~/conf/tomcat-users.xml文件,关于用户角色、管理员的信息都在这个配置文件中。
2:在配置文件<tomcat-users>节点下添加如下xml

<role rolename="admin"/> <role rolename="manager"/> <user username="admin" password="admin" roles="admin,manager"/>

3:启动tomat6,输入:用户名:admin 密码:admin 登陆到管理员界面。

二:tomcat7配置管理员信息
1:打开tomcat7下的~/conf/tomcat-users.xml文件,关于用户角色、管理员的信息都在这个配置文件中。
2:在配置文件<tomcat-users>节点下添加如下xml

<role rolename="admin-gui"/> <role rolename="manager-gui"/><user username="admin" password="admin" roles=" admin-gui , manager-gui "/>

3:启动tomat7,输入:用户名:admin 密码:admin 登陆到管理员界面。

[Tomcat]Tomcat6和Tomcat7的区别

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.