mirror of
https://github.com/JeffLi1993/springboot-learning-example.git
synced 2026-03-13 21:43:45 +08:00
spring boot hello world
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package org.spring.springboot.web;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* Spring Boot HelloWorld案例
|
||||
*
|
||||
* Created by bysocket on 16/4/26.
|
||||
*/
|
||||
@RestController
|
||||
public class HelloWorldController {
|
||||
|
||||
@RequestMapping("/")
|
||||
public String sayHello() {
|
||||
return "Hello,World!";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user