内容源自尚硅谷视频: https://www.bilibili.com/video/av38657363/?p=5
IDE: idea
创建项目,new project, 左侧选择maven,上边设置sdk(即本地的jdk包),直接next
初始化配置如下:
<groupId>com.shangguigu</groupId>
<artifactId>spring-boot-01-helloworld</artifactId>
<version>1.0-SNAPSHOT</version>
添加配置到pom.xml:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.8.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
添加java 文件,com.shangguigu.HelloWorldMainApplication
Q&A:
idea不能无法自动显示 代码提示框?
因为设置了power save mode, 勾选掉即可,参考https://blog.youkuaiyun.com/ningfuxuan/article/details/81289188