spring boot启动流程

 时间:2024-11-15 12:41:56

1、打开Intellij IDEA软件,新建一个SpringBoot项目,新建一个Java文件这里命名为DemoApplication,键入如下代码:package com.chinese.demo;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.EnableAutoConfiguration;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); }}如图所示:

spring boot启动流程

2、选择新建的Class文件,点击RunDemoApplication,如图所示:

spring boot启动流程

3、运行启动成功之后,后台出现Spring Boot图标,如图所示:

spring boot启动流程
  • 支付宝使用攻略(实名认证)
  • 语雀新增了哪些实用功能
  • 用jquery怎么获取下拉框第二个option的值
  • 如何进行有赞店铺认证?
  • 蝎子应该这样养
  • 热门搜索
    海德公园简介 q币怎么转账 杀手47攻略 延禧攻略下载 刚怀孕肚子疼怎么回事 电脑打不出字怎么办 梦幻西游攻略 拉布拉多幼犬怎么养 太姥山攻略 如何控制饮食减肥