springboot创建web应用

2022/9/14 23:18:38

本文主要是介绍springboot创建web应用,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

①创建maven工程

②pom.xml中添加父工程

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.3.4.RELEASE</version>
    </parent>

  

③pom.xml中添加web场景启动器

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

  

 



这篇关于springboot创建web应用的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程