📄 war-dir.xtp
字号:
<s1 title=".war files and the webapps directory"><p>A .war file is a packaged Servlet application. It's just arenamed .jar file of the web-app directory tree. Resin provides aspecial webapps directory which will automatically expand .war files,configured by the <war-dir> attribute in the resin.conf's hostconfiguration.</p><example><caucho.com><http-server> <http port='8080'/> <host id='*'> <war-dir>webapps</war-dir> </host></http-server></caucho.com></example><p>Placing a foo.war in webapps/foo.war will prompt Resin to expandfoo.war into webapps/foo/*. Resin will automatically create a newapplication browsable at the URL http://localhost:8080/foo</p><p>You can also use the <war-dir> for development. Just creating awebapps/bar directory will create an application browsableat http://localhost:8080/bar. A small warning, though, any bar.warplaced in webapps will delete and replace your webapps/bar directory.</p><p>The special .war file ROOT.war can be used to configure the 'root'web-app, i.e. the web-app with no context path. webapps/ROOT is browsedwith http://localhost:8080.</p><p>Resin always handles all files in a war, even when Resin is used withanother webserver like Apache.</p></s1>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -