![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
文章平均质量分 93
loong-judge
生活也是一门艺术
展开
-
Spring boot 启动 tomact 流程源码
启动流程spring boot tomcat 自动装配tomcat 主要组件启动流程Connector 组件获取网络数据流程Endpoint - AcceptorEndPoint - PollerProcessorAdaptercontainerspring boot tomcat 自动装配springboot 入口ServletWebServerFactoryAutoConfiguration,如下图,不再详细介绍。TomcatServletWebServerFactoryCustomizer原创 2021-09-17 02:32:58 · 254 阅读 · 0 评论 -
springboot 项目改进成多个数据源时遇到的问题
之前使用mybatis注解创建动态的sql语句,把相关jar包添加到springboot项目中使用,springboot中@SpringBootApplication默认scanBasePackages是当前包可以修改增加相关的多个包名@SpringBootApplication(scanBasePackages = {"xyz.ccw.cloud"})增加DataSourceUs...原创 2018-07-01 23:22:01 · 1138 阅读 · 0 评论 -
Spring Boot 使用 Druid 和监控配置
Spring Boot 使用 Druid 和监控配置Druid是Java语言中最好的数据库连接池,并且能够提供强大的监控和扩展功能。业界把 Druid 和 HikariCP 做对比后,虽说 HikariCP 的性能比 Druid 高,但是因为 Druid 包括很多维度的统计和分析功能,所以这也是大家都选择使用它的原因。下面来说明如何在 Spring Boot 中配置使用Druid1...转载 2018-07-01 23:37:40 · 149 阅读 · 0 评论 -
使用zookeeper作为服务治理的spring中使用feign访问外接口
项目中使用zookeeper作为服务治理的spring中使用feign访问外接口,特来总结一下,比使用自己封装的http请求方便多了。maven 添加依赖 <dependency> <groupId>io.github.openfeign</groupId> <artifactId>feign-okhttp</ar...原创 2018-03-30 00:02:20 · 1538 阅读 · 0 评论