1:创建主文件
package com.liyafei.controller;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringBootDemoApplication {
public static void main(String[] args) {
SpringApplication.run(SpringBootDemoApplication.class, args);
}
}
2:在pom文件中添加依赖
org.springframework.bootspring-boot-starter-parent1.3.4.RELEASEorg.springframework.bootspring-boot-starter-web