除了Tomcat外还有哪些服务器软件适合学习JavaWeb开发时用?

除了Tomcat外还有哪些服务器软件适合学习JavaWeb开发时用?感觉Tomcat经常占用内存和Cpu过大导致无法访问项目。

FFIVE
浏览 2164回答 3
3回答

DIEA

推荐学习的时候,直接用Maven去管理依赖,加一个Jetty插件运行项目就可以了,例如:<plugin>&nbsp; &nbsp; <groupId>org.mortbay.jetty</groupId>&nbsp; &nbsp; <artifactId>maven-jetty-plugin</artifactId>&nbsp; &nbsp; <version>6.1.26</version>&nbsp; &nbsp; <configuration>&nbsp; &nbsp; &nbsp; &nbsp; <connectors>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <port>8080</port>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </connector>&nbsp; &nbsp; &nbsp; &nbsp; </connectors>&nbsp; &nbsp; &nbsp; &nbsp; <scanIntervalSeconds>10</scanIntervalSeconds>&nbsp; &nbsp; </configuration></plugin>执行命令 mvn jetty:run就可以测试了
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java