IDEA 新建springboot项目

2022-08-28 10:58:57

1.new project

然后一直 Next,自行命名配置。。。。

创建之后的文件目录

写一个简单的接口

浏览器访问成功!

另附pom.xml配置

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

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

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>
  • 作者:Dalon_G
  • 原文链接:https://blog.csdn.net/Dalon_G/article/details/85070655
    更新时间:2022-08-28 10:58:57