没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
使用 tomcat7 作为 maven web 项目的运行容器
邹晓明
目前开发中常用的是 jey 容器(和 maven 集成比较好),但是由于 jey 比较轻量,有一些
问题,如:
1:对 session 支持不是很好
2:和 struct2.x 有一些冲突,如<s:debug/>
下面介绍使用 java 中知名的 tomcat 作为 web 项目容器
1:pom.xml 配置
<build>
<finalName>web_maven</finalName>
<plugins>
<!-- 使用 tomcat7 启动服务 -->
<plugin>
<groupId>com.googlecode.t7mp</groupId>
<artifactId>maven-t7-plugin</artifactId>
<version>0.9.10.M1</version>
<configuration>
<tomcatHttpPort>8080</tomcatHttpPort>
<tomcatShutdownPort>8005</tomcatShutdownPort>
<tomcatShutdownCommand>SHUTDOWN</tomcatShutdownCommand>
<tomcatVersion>7.0.22</tomcatVersion>
<tomcatSetAwait>true</tomcatSetAwait>
<lookInside>false</lookInside>
<contextPath>${project.build.finalName}</contextPath>
<addGithubRepository>false</addGithubRepository>
<downloadTomcatExamples>false</downloadTomcatExamples>
<suspendConsoleOutput>false</suspendConsoleOutput>
<scanners>
<scannerConfiguration />
</scanners>
</configuration>
</plugin>
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>javarebel-maven-plugin</artifactId>
<version>1.0.5</version>
<executions>
<execution>
资源评论
- qq9037588742013-10-14不错 适合新手入门用
鬼见愁2000
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功