springboot第一课笔记

1,java环境搭建,maven环境搭建

2,intelJ创建,选择maven,拷贝以下代码

<groupId>com.hh</groupId>
<artifactId>helloSpringboot</artifactId>
<version>1.0-SNAPSHOT</version>

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.4.5</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

<dependencies>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-test</artifactId>
    <scope>test</scope>
</dependency>
</dependencies>

3,刷新加载包。

上一篇:SpringBootAdmin集成文档


下一篇:axios取消请求