Chao's Blog Chao's Blog
首页
  • vue

    • vue路由
  • 学习笔记

    • 《JavaScript教程》
    • 《JavaScript高级程序设计》
    • 《ES6 教程》
    • 《Vue》
    • 《React》
    • 《TypeScript 从零实现 axios》
    • 《Git》
    • TypeScript
    • JS设计模式总结
  • java
  • spring
  • springboot
  • springcloud
  • git
  • maven
  • nginx
  • tomcat
  • springmvc
  • jvm
  • 图数据库
  • mysql数据库
  • redis数据库
  • windows下docker安装nginx并挂载目录
  • linux命令
  • linux安装软件
  • linux脚本
  • idea
  • vscode
  • 归档
  • 综合项目

    • 若依项目
    • mall项目
  • java
  • mybatis
  • xxl-job
  • mybatis
GitHub (opens new window)

~chao

永远菜鸟,不断努力~
首页
  • vue

    • vue路由
  • 学习笔记

    • 《JavaScript教程》
    • 《JavaScript高级程序设计》
    • 《ES6 教程》
    • 《Vue》
    • 《React》
    • 《TypeScript 从零实现 axios》
    • 《Git》
    • TypeScript
    • JS设计模式总结
  • java
  • spring
  • springboot
  • springcloud
  • git
  • maven
  • nginx
  • tomcat
  • springmvc
  • jvm
  • 图数据库
  • mysql数据库
  • redis数据库
  • windows下docker安装nginx并挂载目录
  • linux命令
  • linux安装软件
  • linux脚本
  • idea
  • vscode
  • 归档
  • 综合项目

    • 若依项目
    • mall项目
  • java
  • mybatis
  • xxl-job
  • mybatis
GitHub (opens new window)
  • java

  • spring

  • springboot

    • springboot注解
    • aop低版本方法内调用方法捕获不到的解决办法
    • springboot 后端解决跨域问题
    • springboot 整合seata
    • springboot的核心注解
      • 一、springboot的核心注解
        • 1. springboot 的核心注解是springbootapplication。它由三个注解组成分别是springconfiguration、componentscan、enableautoconfiguration
        • 1.其中springconfiguration就是configuration的变种,就是把当前类变为配置类
        • 2. componentscan是扫描包路径,默认是启动类所在的包及子包带有约定注解的类
        • 3. 最重要的是EnableAutoConfiguration
    • Spring boot admin 安全配置(非注册中心模式)
    • Nacos和Email整合Spring Boot Admin
    • springboot通过接口重新加载某个bean
  • springcloud

  • git

  • maven

  • nginx

  • tomcat

  • springmvc

  • jvm

  • 正则表达式

  • 消息中间件

  • python

  • 后端
  • springboot
~chao
2022-11-14
目录

springboot的核心注解

# 一、springboot的核心注解

# 1. springboot 的核心注解是springbootapplication。它由三个注解组成分别是springconfiguration、componentscan、enableautoconfiguration

# 1.其中springconfiguration就是configuration的变种,就是把当前类变为配置类

# 2. componentscan是扫描包路径,默认是启动类所在的包及子包带有约定注解的类

# 3. 最重要的是EnableAutoConfiguration

它其实由几个注解组成: 第一个是registar类,它会把扫描到的所有的类注册到容器中; 第二个是selector类,它会把所有METE-INFO/spring.factories中写死的自动配置类加载,但是只是按需自动配置。例如以Conditional条件判断

编辑 (opens new window)
上次更新: 2024/01/26, 05:03:22
springboot 整合seata
Spring boot admin 安全配置(非注册中心模式)

← springboot 整合seata Spring boot admin 安全配置(非注册中心模式)→

最近更新
01
python使用生成器读取大文件-500g
09-24
02
Windows环境下 Docker Desktop 安装 Nginx
04-10
03
使用nginx部署多个前端项目(三种方式)
04-10
更多文章>
Theme by Vdoing | Copyright © 2022-2024 chaos | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式