Sunday, 15 September 2019

Computer Tricks Tutorial

Computer Tricks and Tips - Playlist

Java Tutorial 193 - Java.util.Arrays Class | Arrays class in Java - Playlist

Java Tutorial 193 - Java.util.Arrays Class | Arrays class in Java - Playlist:
https://www.youtube.com/watch?v=oUDUdtitVtU&list=PLmCsXDGbJHdir0kBADhPmH_cOAYNPQqlz

Spring Tutorial 36 - Spring MVC - Playlist

Java Architecture for XML Binding (JAXB) Tutorial | JAXB Tutorial - Playlist

Java Architecture for XML Binding (JAXB) Tutorial | JAXB Tutorial - Playlist:
https://www.youtube.com/watch?v=ynBI0YrTjxE&list=PLmCsXDGbJHdjyu1YOOCuU8Avgj3zfDzn-

How to install and use ImTranslator: Translator, Dictionary Chrome extension? | English Dictionary

How to install and use grammarly extension for chrome?

How to remove unwanted extensions from the Chrome browser?

What is Windows Update? and how to use the Windows Update feature in Windows Operating System?

How to use task manager in Windows Operating System?

How to use MSConfig or System Configuration utility in Windows Operating System?

How to install and use opera browser in Windows Operating System?

How to install and use Mozilla firefox browser in Windows Operating System?

How to install and use Grammarly desktop application in Windows Operating System?

How to install and use Wordweb Dictionary in Windows Operating System?

How to use Power options in Windows Operating System?

How to install and use Malwarebytes in Windows Operating System?

How to Setup Eclipse (Eclipse IDE 2019‑06)? | Eclipse Setup

How to set up and use adwcleaner in Windows Operating System?

How to install and use CCleaner in Windows Operating System?

How to set up and use Airtel 4G hotspot in Windows Operating System?

How to install and use Greenshot to take the screenshots in Windows Operating System?

How to install and use Wise auto shutdown in Windows Operating System?

How to install and use VLC media player to watch movies in Windows Operating System?

How to install and use media player classic to watch movies in Windows Operating System?

How to create a Shortcut for folder or file in Windows Operating System?

How to install and use Textpad in Windows Operating System?

How to install the Microsoft office in Windows Operating System?

How to increase the microphone recording sound in Windows Operating System?

How to uninstall software[e.g.Opera browser] from the Windows Operating System?

How to set/change/remove the user account password in Windows Operating System?

How to Change the desktop background in Windows Operating System?

How to disable folder click sound in Windows Operating System?

How to enable or disable the file extension in Windows Operating System?

How to Change the mouse pointer in Windows Operating System?

How to change download location in Google chrome?

How to sort the byteArray? | sort(byte[] a, int fromIndex, int toIndex) method of Java.util.Arrays

How to sort the byteArray? | sort(byte[] a) method of Java.util.Arrays Class

Java.util.Arrays Class Introduction | Arrays class in Java

Spring MVC Flow Diagram | Spring MVC Execution Flow Diagram

Sunday, 1 September 2019

Java Tutorial 192 - Java EnumMap | EnumMap in Java - Playlist

Java Tutorial 192 - Java EnumMap | EnumMap in Java - Playlist: 
https://www.youtube.com/watch?v=ge4eXprL3FY&list=PLmCsXDGbJHdhBKo7Kvjecfb65WZxdusys

Spring Boot - Custom Banner Example | Spring Boot tutorial

🚀 Level Up Your Java Skills!

Join the Ram N Java community for the best Spring Boot and Java tutorials. Don't miss out on more "magic" tricks!

SUBSCRIBE NOW 🔔

Customizing Your Spring Boot Banner

When you launch a Spring Boot application, you usually see the standard ASCII art logo. While it's iconic, creating a custom banner is a fantastic way to add a professional touch and unique identity to your project from the moment it starts!

What is a Custom Banner?

A custom banner is the text-based graphic that appears in your console logs during the startup phase. It can be your project name, a company logo, or even useful version information.

How to Create Your Own

It is surprisingly simple! All you need to do is follow these quick steps:

  • Create the file: In your project, go to the src/main/resources folder.
  • Name it correctly: Create a new file named exactly banner.txt.
  • Add your Art: Paste your ASCII art into this file.
  • Dynamic Info: You can even use placeholders like ${spring-boot.version} to show the version automatically!

Why Customize?

Beyond looking cool, it helps developers quickly identify which application or version they are running in complex environments. It’s all about professional branding and clarity.

More From Ram N Java

If you enjoyed this tutorial, you'll love these related videos:

Spring Boot starters example | Spring Boot tutorial

🚀 Level Up Your Java Journey!

Want to master Spring Boot and build modern apps faster? Join the Ram N Java community today!

SUBSCRIBE NOW 🔔

What are Spring Boot Starters?

Before Spring Boot, setting up a Java project was like assembling a thousand-piece puzzle. You had to manually find and add dozens of different libraries, making sure they all worked together. Spring Boot Starters changed everything!

The "One-Stop-Shop" for Dependencies

A "Starter" is essentially a curated set of convenient dependency descriptors that you can include in your application. Instead of adding ten separate libraries for a web app, you just add one starter.

Why Beginners Love Starters

Think of it like ordering a "Combo Meal" at a restaurant. Instead of buying the burger, fries, and drink separately, you order the combo. Spring Boot Starters provide:

  • Consistency: All libraries are tested to work together perfectly.
  • Clean Code: Your pom.xml or build.gradle stays short and readable.
  • Speed: Go from a blank screen to a running app in seconds!

Popular Starters You Should Know

Spring Boot provides many starters for different needs. Here are the most common ones:

  • spring-boot-starter-web: For building web apps and RESTful services.
  • spring-boot-starter-data-jpa: For connecting to databases easily.
  • spring-boot-starter-test: Everything you need for testing your code.

Continue Learning

Check out these related tutorials from the channel:

What are the advantages of Spring Boot? | Spring Boot tutorial

🚀 Boost Your Developer Productivity!

Want more tips to code faster and smarter? Join the Ram N Java family today!

SUBSCRIBE NOW 🔔

Spring Boot: The Productivity Powerhouse

In the world of Java development, speed and efficiency are everything. If you are still spending hours configuring XML files or managing complex dependencies, you are missing out on the "Secret Sauce." Spring Boot was designed with one goal in mind: to help you build applications faster than ever before.

Why Spring Boot Changes Everything

The secret to doubling your productivity lies in Opinionated Configuration. Spring Boot makes smart assumptions about what your project needs, so you don't have to tell it every single detail.

The Productivity "Cheat Sheet"

Here are the key features that will save you hours of work every single week:

  • Auto-Configuration: It automatically configures your app based on the libraries you've added.
  • Embedded Servers: No need to install Tomcat separately; it's already inside!
  • Starter POMs: One dependency to rule them all, simplifying your build file.
  • Actuator: Instant insights into how your app is performing in production.

Stop Working Harder, Start Working Smarter

By removing the "Boilerplate" code—the repetitive stuff that doesn't add value—Spring Boot lets you focus on what matters: Your Business Logic. This shift in focus is exactly how developers are doubling their output without increasing their hours.

Recommended For You

Level up your skills with these related tutorials:

How to configure Spring Boot to show Hibernate SQL Query in logs?

🚀 Love Java Development?

Subscribe to Ram N Java for the best Spring Boot tutorials and Java tips!

SUBSCRIBE NOW

Configuring Spring Boot for Hibernate Logs

When developing a Spring Boot application that uses Hibernate for database operations, seeing the actual SQL queries being executed is crucial for debugging and optimization. This guide will show you the easiest way to enable and configure these logs.

Why Enable Hibernate Logs?

By default, Spring Boot stays quiet about what's happening between your application and the database. Enabling logs allows you to:

  • Verify that your JPA queries are generating the SQL you expect.
  • Identify "N+1" select problems that can slow down your app.
  • Debug why a specific database record isn't being updated correctly.

The Quick Configuration

To see the SQL in your console, you simply need to add a few lines to your application.properties file:

# Show SQL in the console
spring.jpa.show-sql=true

# Format the SQL to make it readable
spring.jpa.properties.hibernate.format_sql=true

# Show the values of parameters (?) in the query
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE

Summary of Key Settings

show-sql: This is the most basic setting. Setting it to true prints the query to the standard output.

format_sql: Without this, your SQL will appear as one long, hard-to-read line. Setting this to true beautifies the output with proper indentation.

Logging Levels: If you need even more detail, adjusting the logging levels for the org.hibernate package will give you insights into transaction management and internal Hibernate states.


Check Out More Tutorials From Ram N Java:

How to disable Spring logo banner in Spring Boot using command line option?

🚀 Level Up Your Java Skills!

Join the Ram N Java community for more expert Spring Boot tips and tricks.

SUBSCRIBE TO OUR CHANNEL

Revamp Your Spring Boot: How to Disable the Banner

Every time you launch a Spring Boot application, you're greeted by that familiar ASCII art "Spring" logo. While it's iconic, there are times—like in production environments or specialized console tools—where you might want a cleaner, faster startup experience. In this guide, we'll show you exactly how to remove it.

Why Disable the Spring Banner?

It's a small change, but it can make your logs look much cleaner. Beginners often find that removing unnecessary console output helps them focus on the actual application logs that matter during debugging.

Option 1: Using Application Properties

The simplest way to hide the banner is by adding a single line to your application.properties or application.yml file. This is the preferred method for most developers.

# Disable the Spring Boot startup banner
spring.main.banner-mode=off

Option 2: Programmatic Approach

If you want even more control, you can disable the banner directly in your main method using the SpringApplication builder. This is useful if you want to ensure the banner is off regardless of external property files.

public static void main(String[] args) {
  SpringApplication app = new SpringApplication(MyApplication.class);
  app.setBannerMode(Banner.Mode.OFF);
  app.run(args);
}

Wrapping Up

Customizing your Spring Boot startup is one of the first steps in mastering the framework. Whether you're cleaning up logs or just want a "pro" feel to your console, disabling the banner is a quick win!


You Might Also Like:

How to disable Spring logo banner in Spring Boot using the program?

🔥 Master Spring Boot Today!

Join the Ram N Java family for the best coding tutorials and tech insights.

SUBSCRIBE NOW

Disable the Spring Boot Banner with Ease

When you start a Spring Boot application, the first thing you usually see is the large ASCII "Spring" banner. While it's great for branding, many developers prefer a cleaner console output, especially when working in professional or production environments. This guide shows you how to remove it in seconds.

Why Customize Your Startup?

A cleaner console makes it much easier to spot important log messages immediately upon startup. For beginners, reducing "noise" in the console helps in focusing on actual application errors and initialization steps.

The Simple Configuration Fix

The most common way to disable the banner is through your configuration files. Simply open your application.properties file and add the following command:

# Turn off the Spring Boot startup banner
spring.main.banner-mode=off

Controlling the Banner via Code

If you prefer using Java code to manage your application settings, you can modify your main class. This approach ensures the banner is disabled even if the property files are missing:

public static void main(String[] args) {
  SpringApplication app = new SpringApplication(MyApplication.class);
  app.setBannerMode(Banner.Mode.OFF);
  app.run(args);
}

Final Thoughts

Small tweaks like these help you take full control of your development environment. Whether you want to hide the banner or replace it with your own custom ASCII art, Spring Boot makes it incredibly flexible!


Check Out These Other Cool Tutorials:

Java EnumMap values() method | EnumMap in Java

Java EnumMap remove(Object key) method | EnumMap in Java

Java EnumMap putAll(Map m) method | EnumMap in Java

Java EnumMap keySet() method | EnumMap in Java

Java EnumMap get(Object key) method | EnumMap in Java

Java EnumMap entrySet() method | EnumMap in Java

Java EnumMap containsKey(Object key) and containsValue(Object value) methods

Java EnumMap clear() method | EnumMap in Java

Java EnumMap size() method | EnumMap in Java

Java EnumMap Introduction | EnumMap in Java

Tutorials