Spring-Boot say hello world

 demoApplication代码

@Controller
@EnableAutoConfiguration
public class DemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}
	
	@RequestMapping("/")
	@ResponseBody
	String home() {
		return "hello world";
	}
	
}

  

猜你喜欢

转载自www.cnblogs.com/sunyangCoder/p/9061812.html