-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpringBootExample.java
More file actions
32 lines (28 loc) · 854 Bytes
/
Copy pathSpringBootExample.java
File metadata and controls
32 lines (28 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* Day 35 - Spring Boot: Basic Application
*
* Note: Requires Spring Boot dependencies
* Add to pom.xml: spring-boot-starter-web
*/
// @SpringBootApplication
// public class Application {
// public static void main(String[] args) {
// SpringApplication.run(Application.class, args);
// }
// }
//
// @RestController
// public class HelloController {
// @GetMapping("/hello")
// public String hello() {
// return "Hello, Spring Boot!";
// }
// }
public class SpringBootExample {
public static void main(String[] args) {
System.out.println("Spring Boot concepts illustrated");
System.out.println("@SpringBootApplication - Main entry point");
System.out.println("@RestController - Handles REST requests");
System.out.println("@GetMapping - Maps HTTP GET requests");
}
}