首先创建一个空的 Spring Boot 项目,修改启动类SpringBootHerokuApplication
如下
package io.arukas;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;