hello world
创建一个helloworld
@RequestMapping("/hello") |
运行
package com.shj.springboot; import org.springframework.boot.SpringApplication; @SpringBootApplication public static void main(String[] args) { } |
run as spring boot app
注意: 不要使用 run as java application
可能会出现 非预期的情况