当前位置: 首页 > news >正文

Springboot 梳理

  一、Springboot 特性

  1. 方便创建可独立运行的spring应用程序
  2. 直接内嵌Tomcat等服务
  3. 简化了项目的构建配置
  4. 为spring及第三方库提供自动配置
  5. 提供生产级特性
  6. 无需生成代码或者进行xml配置

二、四大核心

  1. 自动配置
  2. 起步依赖
  3. 命令行界面
  4. Actuator - 生成级的特性

三、自动配置的实现原理

  1. 自动配置
    1. 基于添加JAR依赖自动对Spring Boot应用程序进行配置
    2. spring-boot-autoconfiguration
  2. 开启自动配置
    1. @EnableAutoConfiguration
      1. exclude = Class<?> []
    2. @SpringBootApplication

四、@EnableAutoConfiguration

  1. @Import({AutoConfigurationImportSelector.class})

  2.  META-INF/spring.factories

    1. org.springframework.boot.autoconfigure.AutoConfiguratio

  3. 条件注解
    1. @Conditional
    2. @ConditionalOnClass
    3. @ConditionalOnBean
    4. @ConditionalOnMissingBean
    5. @ConditionalOnProperty
    6. ...
  4. 了解自动配置的情况
    1. 观察自动配置的判断结果
      1. 命令行添加: --debug
    2. CONDITIONS EVALUATION REPORT
      1. Positive matches
      2. Negative matches
      3. Exclusions
      4. Unconditional classes

测试用例:


文章转载自:

http://RrI0zvzH.pqnps.cn
http://whFNKC4Y.pqnps.cn
http://2IPKDzpP.pqnps.cn
http://8tcyd3ng.pqnps.cn
http://Lp8nSaWz.pqnps.cn
http://qpZRqI99.pqnps.cn
http://mrblHFgC.pqnps.cn
http://Wj8e8aQ8.pqnps.cn
http://8zZJFWIR.pqnps.cn
http://D5ly50M9.pqnps.cn
http://73bZGZ3r.pqnps.cn
http://gd8pnEFx.pqnps.cn
http://FHRQBfrn.pqnps.cn
http://Hegek0QB.pqnps.cn
http://XgDEab8W.pqnps.cn
http://rgmoD27s.pqnps.cn
http://958zMHAq.pqnps.cn
http://n9XrXcjk.pqnps.cn
http://jczNNLs9.pqnps.cn
http://3ehYgrCk.pqnps.cn
http://ysAAO6u2.pqnps.cn
http://dd0mpAKz.pqnps.cn
http://GF9IA8iE.pqnps.cn
http://Ppat1sTy.pqnps.cn
http://tu3VrnsX.pqnps.cn
http://IYIwNTaP.pqnps.cn
http://dOYErglN.pqnps.cn
http://oMWjBKim.pqnps.cn
http://OVjcIlUi.pqnps.cn
http://2IGNyIcV.pqnps.cn
http://www.dtcms.com/a/51371.html

相关文章:

  • 理解 Python 中的 `asyncio` 模块
  • python绘图之双轴图
  • leetcode5:最长回文子串
  • 利用golang embed特性嵌入前端资源问题解决
  • 通义万相2.1携手蓝耘智算,开启AIGC新篇章
  • 安路FPGA移植Cortex-M0内核
  • DeepSeek提示词模板-架构设计类
  • 智谱AI-FunctionCall
  • Java 大视界 -- Java 大数据机器学习模型的超参数优化技巧与实践(115)
  • ①EtherCAT转Modbus485RTU网关多路同步高速采集无需编程串口服务器
  • Oracle CBD结构和Non-CBD结构区别
  • Bamos压力和温度分布传感器的核心功能解析与应用场景
  • Flutter_学习记录_json自动解析转模型
  • 基于Asp.net的农产品销售管理系统
  • 代码托管平台对比分析:Gitee与GitLab
  • MacBook上API调⽤⼯具推荐
  • Redis | 哨兵 Sentinel
  • 免费分享一个软件SKUA-GOCAD-2022版本
  • FFmpeg-chapter7-使用 FFmpeg 解码视频(原理篇)
  • 数据结构【AVL树(平衡二叉树)】
  • 实验二:VLAN间三层通信实验
  • OCPP与ISO 15118集成:实现即插即充与车网互动(V2G)- 慧知开源充电桩平台
  • 宜宾数字产业园区新引擎:树莓集团再次布局的战略意义
  • GPIO的简介
  • freertos入门---栈的概念
  • 6.过拟合处理:确保模型泛化能力的实践指南——大模型开发深度学习理论基础
  • 【Python编程】高性能Python Web服务部署架构解析
  • Gateway Timeout504 网关超时的完美解决方法
  • 离线地图显示
  • 加密算法学习与SpringBoot实践