中段d 05 tomcatにeclipse上にtomcatを配置する.
4114 ワード
eclipse https://www.bilibili.com/video/av49438855/?p=24
1. , bin/startup.bat
2.
, , 。 , : http://localhost:8080 , 。
3. startup.bat, , JDK 。
###Tomcat
bin##
> jar , bat 。 startup.bat
conf##
tomcat server.xml web.xml
lib
tomcat jar
logs
temp
webapps##
tomcat , 。
work( )
jsp class
## tomcat
> : 。 stu.xml
localhost :
###1. webapps/ROOT , :
http://localhost:8080/stu.xml
* webaps xml ,
http://localhost:8080/xml/stu.xml
http://localhost:8080 : webapps/root
http://localhost:8080/xml/ : webapps/xml
IP :
http://192.168.37.48:8080/xml/stu.xml
###2.
localhost:8080 tomcat , tomcat , , Context , 。
http://localhost:8080/docs/config/context.html
1. conf/server.xml host 。
2. 。
3. : http://localhost:8080/a/person.xml
###3.
1. tomcat/conf/catalina/localhost/ xml , 。 person.xml
2.
3.
http://localhost:8080/person/xml
### Eclipse Tomcat
1. server , apache , tomcat , 。
2. , server , , open , Server Location , Use Tomcat installation...
3. web , WebContent html , , run as server