Thursday, 8 August 2019

Spring boot Tutorial 17 - Spring logo banner disable and change - Playlist

Spring boot Tutorial 17 - Spring logo banner disable and change - Playlist:
https://www.youtube.com/watch?v=QWXzXqfWB-g&list=PLmCsXDGbJHdiPJRWuFviEGnbDAy6CyU-m

Spring boot Tutorial 16 - Spring Boot @ConfigurationProperties Annotation - Playlist

Spring boot Tutorial 16 - Spring Boot @ConfigurationProperties Annotation - Playlist:
https://www.youtube.com/watch?v=zyxZ6SwI3yE&list=PLmCsXDGbJHdgXoVP8d1sCWxFs0jGCJOeq

Java Tutorial 191 - Java EnumSet | EnumSet in Java - Playlist

Java Tutorial 191 - Java EnumSet | EnumSet in Java - Playlist:
https://www.youtube.com/watch?v=skwousxnlmY&list=PLmCsXDGbJHdimyE5u0EsfUcAZbmgcHKei

Spring Boot – How to disable the Spring logo banner using application.properties file?

Spring Boot - Difference between @ConfigurationProperties and @Value annotations

Spring Boot @ConfigurationProperties - Property validation example

Spring Boot @ConfigurationProperties example | Spring Boot tutorial

What is Spring Boot starter maven template? | Spring Boot tutorial

Spring Boot Starters: Simplifying Your Java Projects

🌟 Ready to master Spring Boot and Maven?

Subscribe to Ram N Java for more developer-friendly guides!

SUBSCRIBE NOW

What is a Spring Boot Starter?

If you have ever tried to set up a Spring project manually, you know how painful it can be to find all the right library versions and make sure they work together. **Spring Boot Starters** are like "pre-packaged kits" or templates that include everything you need for a specific task.

The Maven Template Magic

In Maven terms, a Starter is simply a dependency that brings in a bunch of other related dependencies. Instead of listing 10 different JAR files for a web application, you just add one: spring-boot-starter-web.

  • Dependency Management: No more version conflicts! Spring Boot manages the versions for you.
  • Fast Setup: Go from an empty folder to a running app in minutes.
  • Focus on Code: Spend less time configuring XML and more time writing features.

Common Starters You Should Know

Whether you are building a REST API, connecting to a database, or adding security, there is a starter for that. For example, spring-boot-starter-data-jpa handles all your database needs, while spring-boot-starter-test provides all the tools you need for high-quality testing.

Related Guides from Ram N Java

Check out these other Maven and Spring tutorials:

Spring boot - How to configure Jetty Server option programmatically? | Spring Boot tutorial

Spring boot - How to configure Jetty Server option using application.properties file?

Spring boot - Configure Jetty Server using Gradle | Spring Boot tutorial

🚀 Ready to Become a Java Pro? 🚀

Get the best coding tips and tutorials directly in your feed.

SUBSCRIBE TO RAM N JAVA

Spring Boot: Switching to Jetty with Gradle

By default, Spring Boot uses Tomcat as its web server. But did you know you can swap it for Jetty? Jetty is known for being lightweight and efficient, making it a great choice for modern, high-performance applications.

Why Choose Jetty?

Think of Tomcat as a reliable family SUV—it's great for most things. Jetty, on the other hand, is like a sleek sports car. It's often faster to start up and uses less memory, which is perfect if you're running your apps in small containers or cloud environments.

The Gradle Magic Trick

To make the switch, we use Gradle. It only takes two simple steps in your configuration file:

1. Saying Goodbye to Tomcat

First, we tell Spring Boot not to include the default Tomcat server. In Gradle, we simply "exclude" it from the web starter dependency. This keeps our application clean and lean.

2. Welcoming Jetty

Next, we add the Jetty starter dependency. Gradle will automatically go out, find the right version of Jetty, and plug it into your Spring Boot project. It's that easy!

When Should You Switch?

  • When you need your app to start super fast.
  • When you are working with limited memory (RAM).
  • When you want to handle a huge number of simultaneous connections efficiently.

Continue Your Learning Journey

If you enjoyed this tutorial, you'll love these other videos from my channel:

Wednesday, 7 August 2019

Java EnumSet - noneOf(Class elementType) method | EnumSet in Java

Java EnumSet - complementOf(EnumSet s) method | EnumSet in Java

Java EnumSet - allOf(Class elementType) method | EnumSet in Java

Java EnumSet - range(E from, E to) method | EnumSet in Java

Java EnumSet - of(E first, E... rest) method | EnumSet in Java

Java EnumSet - of(E e1, E e2, E e3, E e4, E e5) method | EnumSet in Java

Java EnumSet - of(E e1, E e2, E e3, E e4) method | EnumSet in Java

Java EnumSet - of(E e1, E e2, E e3) method | EnumSet in Java

Java EnumSet - of(E e1, E e2) method | EnumSet in Java

Java EnumSet - of(E e) method | EnumSet in Java

Java EnumSet Introduction | EnumSet in Java

Tutorials