![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
cax2017
IT螺丝钉
展开
-
学习spring-boot-starter自定义及应用
spring-boot-starter案例 通过下载以上附件,里面是2个idea项目,其中spring-boot-08-starter是自定义,spring-boot-08-starter-test是对该starter的应用,我们今天重点来分析spring-boot-08-starter自定义这个项目。 该项目分为2个模块atguigu-spring-boot-starter和atguigu-...原创 2020-04-03 09:21:32 · 128 阅读 · 0 评论 -
springboot2.0与mybatis整合
mybatis为了自动适配springboot开发适配包,需要引入 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis‐spring‐boot‐starter</artifactId> <versi...原创 2020-04-01 10:29:30 · 96 阅读 · 0 评论 -
springboot2.0如何编码配置servlet容器属性
使用springboot2.0之后,如何通过编码自定义servlet容器参数,使用如下代码 @Bean public WebServerFactoryCustomizer<ConfigurableWebServerFactory> embeddedServletContainerCustomizer() { return new WebServerFactoryCustomize...原创 2020-03-26 17:37:20 · 214 阅读 · 0 评论 -
springboot中如何嵌入servlet容器以及容器启动过程
最近在学习springboot,抽空记录一下,加强记忆。 springboot兼容Tomcat,jetty,undertow容器,默认兼容Tomcat容器,因为spring-boot-starter-web包含tomcat,因此需要使用的时候,需要先把tomcat排除,再引入其他容器,如下: <dependency> <groupId>org.springfra...原创 2020-03-26 16:24:29 · 409 阅读 · 0 评论