war-dir.xtp

来自「解压在c盘」· XTP 代码 · 共 39 行

XTP
39
字号
<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 &lt;war-dir> attribute in the resin.conf's hostconfiguration.</p><example>&lt;caucho.com>&lt;http-server>  &lt;http port='8080'/>  &lt;host id='*'>    &lt;war-dir>webapps&lt;/war-dir>  &lt;/host>&lt;/http-server>&lt;/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 &lt;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 + =
减小字号Ctrl + -
显示快捷键?