springboot-常规方式创建项目

springboot

常规方式创建项目

具体步骤

1、根据引导栏选择boot项目进行创建

根据自己的需求选择需要的具体模块
可以使用阿里云的路径 start.aliyun.com

2、自动化生成启动代码

3、配置依赖管理

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.3</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.ebaoTech</groupId>
    <artifactId>demo2-springboot</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>demo2-springboot</name>
    <description>demo2-springboot</description>
    <properties>
        <java.version>1.8</java.version>
    </properties>
    <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>



4、编写测试代码进行验证

5、这也是创建项目的常用方式

猜你喜欢

转载自blog.csdn.net/AzirBoDa/article/details/126484336