https://github.com/chaseofthejungle/intro-to-spring-boot
An overview guide of the role of Spring Boot in Java Microservices.
https://github.com/chaseofthejungle/intro-to-spring-boot
java java-microservices java-spring java-springboot spring-boot
Last synced: 3 months ago
JSON representation
An overview guide of the role of Spring Boot in Java Microservices.
- Host: GitHub
- URL: https://github.com/chaseofthejungle/intro-to-spring-boot
- Owner: chaseofthejungle
- Created: 2024-12-14T22:23:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-28T02:44:07.000Z (4 months ago)
- Last Synced: 2025-03-28T03:27:01.109Z (4 months ago)
- Topics: java, java-microservices, java-spring, java-springboot, spring-boot
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Intro to Spring Boot
#### Table of Contents
1. [How Spring Boot Differs from Spring](#differences)
2. [Spring Boot Actuator](#actuator)
3. [Spring Initialzr](#initialzr)
4. [Supplemental Resources](#supplemental)
**Description/Overview:** Spring Boot is an open source framework of libraries for the setup, programming, configuration, and deployment of Java microservice applications. Examples of Spring Boot features include diagnostic checks, production-ready metrics, customizable startup configurations, and embedded app servers (e.g., Jetty, Tomcat, Undertow). No code or XML generation is necessary to create Spring Boot projects, and best configurations for projects are automatically determined (and manually adjustable, as desired or needed).
## 1. How Spring Boot Differs from SpringSpring is a configuration framework that empowers enterprise Java app developers with flexible, ready-to-use controls and boilerplate code that make apps quicker and simpler to setup, allowing developers to focus more on the other aspects of development. The Spring Boot framework is assembled 'on top of' it, with extra features (such as additional configuration tools) that make generating stand-alone/autonomous apps even *more* convenient to setup and configure.
## 2. Spring Boot Actuator
This module includes production-environment tools for manging and monitoring Spring Boot app processes and performance. Insights into properties, metrics, diagnostics, and other characteristics are determined via the exposing of endpoints (e.g., '/actuator/metrics', '/actuator/info', /'actuator/health'). Spring Boot Actuator can be configured and integrated with third-party tools/technologies.
## 3. Spring Initialzr
To create a simple RESTful Spring Boot web app using [Spring Initialzr](https://start.spring.io/): Add the dependency `spring-boot-starter-web` to a build.gradle or pom.xml file. Next, develop a controller class (using the annotation `@RestController`) and then a request mapping method using the relevant annotations (`@PostMapping`, `@GetMapping`). As an example:```
@RestController
@RequestMapping("/api")
public class SampleController {
@GetMapping("/sample")
public String printGreeting() {
return "Your map has been received!";
}
}
```Use of either Spring Initialzr (or a similar tool) or manual typing/specification by the developer will be assumed for further examples in this guide involving adding dependencies.
## 4. Supplemental Resources
* [Java Data Structure Leetcode Interview Questions](https://github.com/chaseofthejungle/java-data-structure-leetcode-interview-questions)
* [Java Quick Reference Guide](https://github.com/chaseofthejungle/java-quick-reference-guide)