diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-05-16 21:18:32 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-05-16 21:18:32 +0530 |
| commit | e51834c899ff20781295410961934eb06239385c (patch) | |
| tree | 78f0058914063e37cbd6812d204e4f84efd0ab90 /spring-boot/02-structure/src/main/java/com/example/spring/Application.java | |
| parent | b1d598a2f02819bc127d0d3522dc7ac91b4dee65 (diff) | |
Added spring-boot sample applications
Diffstat (limited to 'spring-boot/02-structure/src/main/java/com/example/spring/Application.java')
| -rw-r--r-- | spring-boot/02-structure/src/main/java/com/example/spring/Application.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spring-boot/02-structure/src/main/java/com/example/spring/Application.java b/spring-boot/02-structure/src/main/java/com/example/spring/Application.java new file mode 100644 index 0000000..c051033 --- /dev/null +++ b/spring-boot/02-structure/src/main/java/com/example/spring/Application.java @@ -0,0 +1,20 @@ +package com.example.spring; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * @SpringBootApplication - Indicates a configuration class that declares one or + * more @Bean methods and also triggers + * auto-configuration and component scanning. This is a + * convenience annotation that is equivalent to + * declaring @Configuration, @EnableAutoConfiguration + * and @ComponentScan. + */ +@SpringBootApplication +public class Application { + + public static void main(String[] args) throws Exception { + SpringApplication.run(Application.class, args); + } +}
\ No newline at end of file |
