![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring boot
羽化而登仙~
生活就这么一回,有什么好怕的,有什么不敢做的,大胆向前走,不让人生充满遗憾。
展开
-
spring boot中mysql驱动加载过程
1、我们一般选择的Datasoure工具类private static final String[] DATA_SOURCE_TYPE_NAMES = new String[] { "org.apache.tomcat.jdbc.pool.DataSource", "com.zaxxer.hikari.HikariDataSource", "org.apache.commons.dbcp.BasicDataSource", // deprecated "org.apache.commons.dbcp2..原创 2020-07-07 19:17:05 · 1122 阅读 · 0 评论 -
Spring boot启动加载嵌入的tomcat过程
Spring boot启动加载嵌入的tomcat过程:1、执行SpringApplication.run方法。进入这个方法,会有一个refreshContext(context);方法。其中的context是spring boot自定义的一个类EmbeddedWebApplicationContext继承了AbstractApplicationContext(); 重写封装了其中的onRefresh和finishRefresh方法。2、开始执行context覆盖的refresh方法,其实内部就是去执原创 2020-06-27 20:11:51 · 399 阅读 · 0 评论