摘要: 八、自定义starter AutoConfiguration: 1、这个场景需要使用到的依赖是什么? 没有特别依赖的配置 2、如何编写自动配置 模式: starter启动器只用来做依赖导入;可以是一个空jar文件,仅提供辅助性依赖管理,这些依赖可能用于自动装配或其它类库。所以建模块时建成普通manv 阅读全文
posted @ 2018-05-11 10:37 苦涩泪滴 阅读(2377) 评论(0) 推荐(1) 编辑
摘要: 创建应用 几个重要的事件回调机制 , 配置在META-INF/spring.factories ApplicationContextInitializer SpringApplicationRunListener 只需要放在ioc容器中 ApplicationRunner CommandLineRu 阅读全文
posted @ 2018-05-11 09:54 苦涩泪滴 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 六、SpringBoot与数据访问 1、JDBC pom.xml配置 application.yml 效果:默认是用org.apache.tomcat.jdbc.pool.DataSource作为数据源,相关配置都在DataSourceProperties里面; 自动配置原理:org.springf 阅读全文
posted @ 2018-05-11 09:52 苦涩泪滴 阅读(217) 评论(0) 推荐(0) 编辑
摘要: thymeleaf模板 https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html thymeleaf模板引擎入门==>https://www.cnblogs.com/ai-developers/p/7395588.html 1、引 阅读全文
posted @ 2018-05-11 09:50 苦涩泪滴 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 市面上的日志框架 日志门面 (日志的抽象层)日志实现 JCL(Jakarta Commons Logging)(2014) SLF4j(Simple Logging Facade for Java) jboss-logging Log4j JUL(java.util.logging) Log4j2 阅读全文
posted @ 2018-05-11 09:29 苦涩泪滴 阅读(133) 评论(0) 推荐(0) 编辑