Please enable JavaScript.
Coggle requires JavaScript to display documents.
SpringBoot (Java based micro services framework build on top of Spring) -…
SpringBoot (Java based micro services framework build on top of Spring)
Create Project
SpringBoot CLI
Spring Initializer from spring website
Using STS IDE
Annotations
Controller
RestController - is used at Class level to tell this is the Controller class
EnableAutoConfiguration
RequestMapping - class level or method level
(@RequestMapping
("/welcome")
GetMapping
PostMapping
SpringBootApplication
Bean
Service
Component
ComponentScan - packages to be scanned
ComponentScan
(basePackages = "com.baeldung.componentscan.springapp")
Configuration
Actuator-HTTP endpoints to expose operational info of running app.
http://localhost:8080/actuator/metrics
.
http://localhost:8080/actuator/health
Run: java -jar <jar file name>