List Headline Image
Updated by Sakshi Gupta on Jul 19, 2018
 REPORT
Sakshi Gupta Sakshi Gupta
Owner
6 items   1 followers   0 votes   45 views

Get To Know The Features of Spring Boot

Spring boot is a tricky framework to work as well as understand, especially when you are a beginner. However, with a good knowledge of basics, you can always understand the important concepts – Starter Projects, Auto Configuration, and Starter Parent. You can take help of a variety of resources to learn and understand spring boot, including spring boot tutorial, courses, and videos.

Here are some things you must know before you get started with spring boot to get the deep knowledge of java programming and spring boot features and can become the java expertise.

1

Spring Boot Features

Spring Boot Features

Below are 3 major features of spring boot to know so as to enhance the knowledge of java in detail.

2

a. Externalized configuration

a. Externalized configuration

Though it is not particularly a great thing, this feature which is extremely useful is often looked by beginners. Spring boot is pretty flexible and well documented on this. For example, you can either use ENVIRONMENT_VARIABLES, --command-line-arguments or -Dsystem.properties, which you’ll finally inject on the required fields. For more details, go through a good spring boot tutorial.

3

b. Actuator

b. Actuator

Actuator helps your give production readiness. For a true production-ready application, you will require to look into the application beyond whatever used face interface your application is running. For example, you can create such a thing for health checks:
• A builder.up() will tell that everything is okay
• Or builder.down() or throwing an exception will tell that something isn’t right.
• Add .withDetail("…") to give some more information
Also, you can expose over an HTTP endpoint things, like configuration. They are keys that include common words for things that are protected which might get blanked out.

4

c. Fat Jars

c. Fat Jars

Fat jars are not a new thing in spring boots. But they are also a good alternative to using Docker images. Yes! You might not know about it. Thought it has nothing to do with the Docker, Cgroups can cause unusual long pause during garbage collection and sometimes distributing simple files can be a lot more convenient than the alternative. Spring offers an excellent Maven plugin that does everything for you.

5

d. Auto configuration

d. Auto configuration

It is more a convention over configuration. Though this is one of the major criticism of Spring Boot, you can do wonders with it. Java is a static and old-fashioned language.

6

Spring framework

Spring framework

But take a look at org.springframework.boot.autoconfigure.SpringBootApplication annotation. It has two more annotations. First - @ComponentScan that enables scanning for beans as long as they are given usual @component annotation.

Second - @EnableAutoConfiguration is a little bit more complicated, but it ensures that Spring is scanning the classpath for all spring.factories property files.

Now as you are aware of some excellent features of Spring Boot i.e. Starter Projects, Auto Configuration, and Starter Parent. You can take help of a variety of resources to learn , it is time to get started.

  • She is an experienced blogger and a digital marketer loves to write on technology lifestyle and other latest trends. She likes to travel to new places and reading books.

  • Tools