其他分享
首页 > 其他分享> > springboot第一课笔记

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,刷新加载包。

标签:springboot,spring,boot,springframework,第一课,笔记,test,org,starter
来源: https://blog.csdn.net/weixin_41623699/article/details/122682515