08 2018 档案

摘要:starter: 1、这个场景需要使用到的依赖是什么? 2、如何编写自动配置? 3、模式: 启动器只用来做依赖导入; 专门来写一个自动配置模块; 启动器依赖自动配置;别人只需要引入启动器(starter) mybatis-spring-boot-starter;自定义启动器名-spring-boot 阅读全文
posted @ 2018-08-19 21:15 Young_Yang_Yang 阅读(230) 评论(0) 推荐(0) 编辑
摘要:几个重要的事件回调机制 配置在META-INF/spring.factories ApplicationContextInitializer SpringApplicationRunListener 只需要放在ioc容器中 ApplicationRunner CommandLineRunner 启动 阅读全文
posted @ 2018-08-18 22:30 Young_Yang_Yang 阅读(148) 评论(0) 推荐(0) 编辑
摘要:1、JDBC 效果: 默认使用org.apache.tomcat.jdbc.pool.DataSource作为数据源; 数据源的相关配置都在DataSourceProperties里面; 自动配置原理: org.springframework.boot.autoconfigure.jdbc: 1、参 阅读全文
posted @ 2018-08-12 23:27 Young_Yang_Yang 阅读(900) 评论(0) 推荐(0) 编辑
摘要:环境:Centos7 命令:systemctl start docker systemctl status docker.service 解决方案: 意思是此linux的内核中的SELinux不支持 overlay2 graph driver 重新编辑docker配置文件: vi /etc/sysc 阅读全文
posted @ 2018-08-05 21:20 Young_Yang_Yang 阅读(1184) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示