Showing posts with label beans. Show all posts
Showing posts with label beans. Show all posts

Thursday, May 19, 2022

JAVA Spring Boot Tutorial



References:

Prerequisites

To get the most out of the tutorial, you should be comfortable using the Java Development Kit, version 8 (JDK 8). You'll also need to be familiar with Eclipse IDE, Maven, and Git.

To follow along with the tutorial, be sure this software is installed:

Spring-Starters

Starters are a big part of the magic of Spring Boot, used to limit the amount of manual dependency configuration that you have to do. If you're going to use Spring Boot effectively, you should know about starters.

A starter is essentially a set of dependencies (such as a Maven POM) that are specific to the type of application the starter represents.

All starters use the naming convention spring-boot-starter-XYZ, where XYZ is the type of application you want to build. Here are some popular Spring Boot starters:
  1. spring-boot-starter-web is used to build RESTful web services using Spring MVC (Model-View-Controller design pattern. It implements all the basic features of a core spring framework like Inversion of Control, Dependency Injection) and Tomcat as the embedded application container.
  2. spring-boot-starter-jersey is an alternative to spring-boot-starter-web that uses Apache Jersey rather than Spring MVC.
  3. spring-boot-starter-jdbc is used for JDBC connection pooling. It's based on Tomcat's JDBC connection-pool implementation.

Learn What You Can Do with Spring Boot

Spring Boot offers a fast way to build applications. It looks at your classpath and at the beans you have configured, makes reasonable assumptions about what you are missing, and adds those items. With Spring Boot, you can focus more on business features and less on infrastructure.


Tutorial
  1. setting up and running a simple Spring Boot application called HelloSpringBoot
  2. build and exercise a Spring MVC RESTful web services application using Spring Boot



Fluentd

Open-source log data collector > why logs? - for compliance (auditing, company, business) - for security (transparency, monitoring, admin...