@作者博客
简单记忆一下知识 :
SpringBoot 是什么?
快速开发,简单入门.
IDEA Main快捷键 (psvm)
入口程序:
@SpringBootApplication //用来标注一个主程序类,说明 这个是Spring Boot 的应用
public class SpringBootStone{
public static void main(String [] args){
//程序入口,类似C#程序的入口一样
SpringApplication.run(SpringBootStone.class,args);
}
}
为了让项目变为可执行的jar包文件,加入Maven的jar包
<pre class="md-fences md-end-block" lang="xml" contenteditable="false" cid="n40" mdtype="fences" style="box-sizing: border-box; overflow: visible; font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; font-size: 0.9rem; white-space: pre; margin-top: 0px; margin-bottom: 20px; background-image: inherit; background-size: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(54, 59, 64); text-align: left; break-inside: avoid; display: block; position: relative !important; padding: 10px 30px; border: 1px solid; width: inherit; color: rgb(184, 191, 198); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: inherit inherit; background-repeat: inherit inherit;"><plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</pre>
SpringBoot 的启动器,有很多,它都帮我们配置好了,依赖版本号
可以启动了.