Spaces:
Sleeping
Sleeping
File size: 552 Bytes
8b38cc3 86def8e f3bb92a 86def8e f3bb92a 86def8e f3bb92a 86def8e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
package com.example.demo;
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;
@SpringBootApplication
@RestController
public class DemoApplication {
@GetMapping("/user")
public User getUser() {
return new User("Kevan", 21);
}
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
|