maven-webserver插件
来源:互联网 发布:浙江工业大学网络 编辑:程序博客网 时间:2024/06/02 05:07
使用maven jetty插件 开发测试 从此就告别web server了 还能设置热部署的间隔时间,简直太方便了
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.16.v20140903</version> <configuration> <stopKey>stop</stopKey> <stopPort>9966</stopPort> <scanIntervalSeconds>5</scanIntervalSeconds> <webApp> <contextPath>/项目名称</contextPath> </webApp> <webAppConfig> <defaultsDescriptor>src/main/resources/jetty-config.xml</defaultsDescriptor> </webAppConfig> <connectors> <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> <port>9091</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> </configuration></plugin>
jetty-config.xml:
<init-param> <param-name>useFileMappedBuffer</param-name> <param-value>false</param-value></init-param>
tomcat
<tomcat.version>2.2</tomcat.version> <webserver.port>8181</webserver.port> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- tomcat6插件 --><plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat6-maven-plugin</artifactId> <version>${tomcat.version}</version> <configuration> <port>${webserver.port}</port> <path>/${project.artifactId}</path> <uriEncoding>${project.build.sourceEncoding}</uriEncoding> </configuration></plugin>
<!-- tomcat7插件 --><plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>${tomcat.version}</version> <configuration> <port>${webserver.port}</port> <path>/${project.artifactId}</path> <uriEncoding>${project.build.sourceEncoding}</uriEncoding> </configuration></plugin>
0 0
- maven-webserver插件
- webserver
- webserver
- webserver
- WebServer
- webserver
- WebServer
- webServer
- WebServer
- maven插件
- maven插件
- Maven 插件
- Maven插件
- maven 插件
- Maven插件
- Maven插件
- maven插件
- maven 插件
- vs2013+ 编译 opencv3.x 的拓展包
- 随机输出带权重数组中的值(百度二面算法题目)
- Python 数据分析 pandas
- 用BlockBoundQueue和c++11实现多线程生产者消费者问题
- selectionSort
- maven-webserver插件
- 简单猜数字游戏
- Win 10 配置自动更新策略
- 挖掘模式(上)
- PS_BaseUse_颜色替换
- css float的代码顺序和html页面显示顺序的问题
- 摄像机标定学习笔记(3)
- openjudge 2982--Sudoku(九宫格数独) DFS算法加剪枝
- Mybatis中的事务管理器详述