
springboot
文章平均质量分 84
主要讲解springboot的原理以及整合一些框架的使用
该码就码
这个作者很懒,什么都没留下…
展开
-
springboot10--->spring-boot自动配置事务管理器的原理分析
待续。。。原创 2020-09-24 18:02:31 · 1477 阅读 · 0 评论 -
springboot9--->spring-boot自动配置springAOP原理分析
1、待续。。。原创 2020-09-23 18:14:08 · 306 阅读 · 0 评论 -
springboot8--->springboot自动配置数据源DataSource原理分析
1、使用简介 我们在使用spring boot的时候我们配置一个数据源主要是通过如下配置来进行定义配置数据源的类型,比如druid,不配置会使用默认的数据源类型spring.datasource.type=com.alibaba.druid.pool.DruidDataSource配置数据源的数据库服务地址spring.datasource.url=jdbc:mysql://localhost:3306/test?zeroDateTimeBehavior=convertToNul...原创 2020-09-23 17:56:41 · 5055 阅读 · 0 评论 -
springboot7--->springboot是如何自动配置springmvc的原理分析
1、在传统的springMvc项目里面,我们会将DispatcherServlet配置在web.xml中,案例如下: <servlet> <servlet-name>springmvc</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <ini原创 2020-09-21 17:21:21 · 229 阅读 · 0 评论 -
springboot6--->spring-boot的starter介绍以及实现自己的starter
1、在spring boot中starter的含义 官网的说法是:Starters are a set of convenient dependency descriptors that you can include in your application. You get a one-stop shop for all the Spring and related technologies that you need without having to hunt through sampl...原创 2020-09-18 17:34:05 · 529 阅读 · 0 评论 -
springboot5--->springboot应用的监控功能-----使用spring boot Admin来监控spring boot应用
1、spring boot admin简介 Spring Boot Actuator 提供了对单个 Spring Boot 应用的监控,信息包含应用状态、内存、线程、堆栈等,比较全面的监控了 Spring Boot 应用的整个生命周期。但是这样监控也有一些问题: 第1:所有的监控都需要调用固定的接口来查看,如果全面查看应用状态需要调用很多接口,并且接口返回的 JSON 信息不方便运营人员理解; 第2:如果 Spring Boot 应用集群非常大,每个应用都需要调...原创 2020-09-18 17:06:33 · 982 阅读 · 1 评论 -
springboot4--->springboot应用的监控功能-----Actuator常规使用
1、springboot Actuator使用案例: 1.1、构建一个Springboot 项目,添加如下依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency...原创 2020-09-18 16:07:57 · 371 阅读 · 0 评论 -
springboot3--->springboot的ConfigFileApplicationListener 配置文件应用监听器原理分析
1、简单使用 我们知道spring boot 默认会加载appication.properties配置文件,我们在此配置文件中配置一个name熟悉,然后写一个rest接口进行获取,代码如下: application.properties配置文件中: server.port=8080 name=wen default Controller: @RestController ...原创 2020-09-14 18:33:49 · 1505 阅读 · 0 评论 -
springboot2--->springboot的核心原理
1、上一篇文章对springboot进行了一个简单的使用,接下来我们分析一下springboot的核心原理,需要储备的知识点是对spring framework的扩展点比较属性才能看懂。2、springboot的核心是从启动类开始的@SpringBootApplicationpublic class SpringBootBaseusedApplication { public static void main(String[] args) { SpringAppl.原创 2020-09-09 18:15:49 · 278 阅读 · 0 评论 -
springboot1--->springboot初体验
1、springboot与spring framework 的与别是什么? springboot 就是使用了spring framework的核心组件,然后添加自动装配的功能,可以理解为springboot就是封装了spring framework,致力于快速构建spring framework项目。2、springboot 初体验 2.1、我们在IDEA中使用Spring Initializer 来快速构建SpringBoot项目。 2.2、构建完成后项...原创 2020-09-09 16:19:56 · 360 阅读 · 0 评论