MyWebSite
|
|-- Static Resources and JSP files can be placed directly in the Web application directory, the browser can directly access
|--Web-inf Browser has no way to directly access
|--classes class file for dynamic Web runtime ,java class
|--lib dynamic Web Resource runtime depends on the jar Package
|--web.xml the entire web configuration file, configure the home page,Servlet mappings, filters, listener configuration
Xml
Configuring a virtual Host
Add a host, Add a <Host> node in Tomcat/confserver.xml, set the name and path name="" Appbase= ""
Modify the hosts file on this computer to test
Packaging the Web app war
use jar-cvf news.war under cmd command *
Copy this war packet directly to the webapps directory and extract it automatically.
Right-click Add to Zip Package, directly modify suffix to war effect is the same
Tomcat Management Platform
Configure the password, Configure it in the Conf/tomcat-users.xml file
<user username= "admin" password= "admin" roles= "Manager-gui"/>
[Java EE] web application directory structure & Configure a virtual host