Skip to main content
Loose coupling is an approach
The Client-Server Relationship
Before diving into the world of Java web development, it is very important to understand how the client-server model works. It is necessary for you to understand the client-server model because all Java web applications are built on it. Please know everything about the different layers on the server. This will make your basics stronger and it will be easier to understand advanced Java. Because nowadays we are developing web apps using advanced java (Spring or Spring Boot), the client server will help you understand how the Spring/Spring Boot framework works.
annotations in Spring Boot
annotations define the mapping of incoming HTTP requests to methods within the controller, allowing for seamless handling of client requests.
@bean VS @component

# @Component @Bean
@Contorller VS @RestController annotation
@Controller is used to declare common web controllers which can return HTTP response but @RestController is used to create controllers for REST APIs which can return JSON.
@RequestMapping VS @GetMapping Annotations
@GetMapping is only for HTTP GET request @RequestMapping can be used to process any HTTP methods like POST, PUT, GET and even DELETE.
Whitelabel Error Page Problem Solved in Spring boot

Hello everyone, welcome back to techbrushup. In this tutorial, we will learn how to Solve Whitelabel Error Page Problem in Spring Boot application.

Additional info:


Must have have look in error status code (404 or 500 or some thing else)

Install Extension Pack

Step 1: Open visual studio and install some recommended extension as below

  • Extension Pack for Java Extension Pack of (6)

     spring boot

How to Install Java on Windows machine

Hello everyone, welcome back to techbrushup. In this tutorial, we will learn how to install Java on window machine. So guys, let's do it.

Additional info:


  • Windows 10 and above
  • Machine with Administrator privileges
  • Internet

Check if Java Is Installed

  • Open a command prompt
  • Run the following command:


War File

A war (web archive) File contains files of a web project. It may have servlet, xml, jsp, image, html, css, js etc. files.

How to create war file

To create war file, we need to use jar tool of JDK.

jar -cvf projectname.war *

-c is used to create file,

-v to generate the verbose output and

-f to specify the arhive file name.

How to deploy war file

How to extract war file

Apache Tomcat Setup and Web Project Deployment in Visual Studio code

In this article we will learn to setup apache tomcat in Visual Studio Code and then we will see how to create a war file from a web project and deployment in  tomcat and run application.

Important to know:

- Visual Studio code does not come with any embedded application server.

- As we know to work with web application we required server integration.

-In Visual Studio Code , We need third party extension to integrate appliaction server like tomcat.

So, Lets learn  Apache Tomcat Setup and Web Project Deployment


Subscribe to Java