springboot(十一)切换web容器
2017-01-06 12:08
148 查看
springboot默认为Tomcat,如果想切换为jetty
这样就可以了,如果用到HttpServletRequest,还需要
ps:jetty插件不能运行 packaging为jar的
项目地址:https://github.com/hereyouareeee/springboot-1.git
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jetty</artifactId> </dependency>
这样就可以了,如果用到HttpServletRequest,还需要
<dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> </dependency>
ps:jetty插件不能运行 packaging为jar的
项目地址:https://github.com/hereyouareeee/springboot-1.git
相关文章推荐
- SpringBoot切换tomcat容器为jetty/jetty
- WEB容器切换编码问题分享
- Spring 4 官方文档学习(十一)Web MVC 框架之编码式Servlet容器初始化
- Web C#2.0 DataSet和Reader封装组件实现自动多数据库切换(含组件源码和实例)
- 12天完成切换至标准化web重构 --第五天 head区的其他设置
- 从源码看spring applicationContext在web容器中加载过程
- 使用microsoft.web.ui.webcontrols的TabStrip与IFame组件,达到页的切换效果
- 12天完成切换至标准化web重构 --第四天 调用样式表
- 浅析Windows NT/2000环境切换(http://webcrazy.yeah.net)
- 在VS2003的Web设计器从代码视图切换至视图设计器时出错
- Web C#2.0 DataSet和Reader封装组件实现自动多数据库切换(含组件源码和实例)
- Web Application 開 發 利 器 - WebSnap(十一)
- Spring源代码分析之(二):IOC容器在web容器中的启动
- 如何重新载入struts-config.xml而不用重起Web容器?
- Web容器,工作流,融合
- Web C#2.0 DataSet和Reader封装组件实现自动多数据库切换(含组件源码和实例)
- asp.net 包含动态创建控件的容器如果要切换显示/隐藏不要用 Visible 属性
- 12天完成切换至标准化web重构 第三天--定义语言编码
- 配置IISweb容器之程序下载
- 在WEB容器中配置自己log4j日志