![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Springboot
孙悟空2015
追根溯底,回归本质,挖掘兴趣,激发思考。
展开
-
SpringBoot学习笔记一之【Idea下创建springboot示例、启动原理分析与两种部署启动方式】
1、使用背景 首先说下我们为什么使用springboot,原因有以下几点 1、快速创建独立运行的spring项目以及与主流框架继承 2、使用嵌入式的Servlet容器,无需打成war包 3、starters自动依赖于版本控制 4、大量的自动配置,简化开发,也可修改默认值 5、无需配置xml,无代码生成,开箱即用 6、生产环境的运行时应用监控,配合springcloud全家桶 7、与...原创 2019-01-06 00:44:32 · 1900 阅读 · 0 评论 -
SpringBoot学习笔记二之【yml配置举例与语法介绍】
Resource目录结构说明: static:保存所有的静态资源; js css images; templates:保存所有的模板页面;(Spring Boot默认jar包使用嵌入式的Tomcat,默认不支持JSP页面);可以使用模板引擎(freemarker、thymeleaf、velocity); application.properties(application.y...原创 2019-01-06 21:53:30 · 3594 阅读 · 3 评论 -
SpringBoot学习笔记四之【自动配置原理与举例】
版本2.1.1 springboot只有一个application的启动,我们就从这个启动开始分析,首先我们跟进注解@SpringBootApplication如下: /** Class, interface (including annotation type), or enum declaration */ @Target(ElementType.TYPE) @Retention(Ret...原创 2019-01-26 23:42:14 · 1515 阅读 · 0 评论