SpringBoot框架搭建web服务
1、使用intellij新建一个maven工程,注意不用勾选archetype,点击下一步

2、按照提示填写groupId和artifactId以及项目名称等信息,点击Finish


3、打开pom.xml,添加以下内容:<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.0.RELEASE</version</parent<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId </plugin> </plugins></build><dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency</dependencies>

4、编写启动类,并运行main方法

5、SpringBoot搭建web服务到这里就完成了,打开浏览器,输入http://localhost:8080/
