标签:demo 启动 state pid start rgs cti oid nbsp
1、先创建一个空的工程,创建springboot 工程 必须继承spring-boot-stater-parent
2、导入依赖
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.2.RELEASE</version> </parent>
3、设置主启动类
@SpringBootApplication //主启动类注解public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class,args); } }
完成后可以测试一下!
标签:demo 启动 state pid start rgs cti oid nbsp
原文地址:https://www.cnblogs.com/xueziyeya/p/11801560.html