The type javax.servlet.ServletContext cannot be resolved. It is indirectly referenced from required .class files

If you have encountered this annoying error in Eclipse you are in luck. Here I will be telling you how to fix it! First, right-click the project in Project Explorer and click Properties: On the Properties screen type “build” and

Read More The type javax.servlet.ServletContext cannot be resolved. It is indirectly referenced from required .class files

Spring MVC Workflow – Understanding How Spring MVC Mechanism Works

Let’s start by observing the figure below:   First, the request is received by the DispatcherServlet. DispatcherServlet is a front controller. It is like a super controller who redirects all the requests to the corresponding handler methods inside the controller classes.

Read More Spring MVC Workflow – Understanding How Spring MVC Mechanism Works

Java Error: Could not find or load main class

When you are creating apps using an IDE like Eclipse or IntelliJ IDEA, compiling and running your code is pretty easy since the IDE will take care of many of the things behind the scenes. But you may encounter this

Read More Java Error: Could not find or load main class

Spring Component Annotation and further stereotype annotations

spring-spring-mvc-spring-boot

In this post I would like to share with you some enlightening quotes from spring documentation. Here you will see the difference between some of the spring annotations like @component, @service, @repository, @controller, what it means to use them or can

Read More Spring Component Annotation and further stereotype annotations

Microservice Registration and Discovery with Eureka and FeignClient

netflix-eureka

In this post, I will try to guide you on how to develop with Spring’s wrapping of Netflix’s Eureka. Eureka is a REST (Representational State Transfer) based service that is primarily used in the AWS cloud for locating services for the purpose of

Read More Microservice Registration and Discovery with Eureka and FeignClient

Java Spring Framework vs. Spring MVC vs. Spring Boot

spring-spring-mvc-spring-boot

New to Java world? Confused about what is what? What is Spring? What is Spring MVC? What is Spring Boot? Let me “briefly” explain the differences and what they are used for. What is Java Spring Framework? Spring Framework is

Read More Java Spring Framework vs. Spring MVC vs. Spring Boot

Removing last character using javascript – substring, substr, slice methods

javascript-slice-substr-substring

In this post, I would like to present you with 3 different 1-line scripts that are used a lot. These snippets are used to remove the last character from a string. When may you need this? You may be building

Read More Removing last character using javascript – substring, substr, slice methods

Indexing, Retrieving, Deleting Documents in Elastic Search (Using Kibana)

elastic-search-kibana

Indexing, Retrieving, Deleting Documents in Elastic Search (Using Kibana) Elasticsearch (ELK Stack) – Part 1 I have been playing around with ELK (Elasticsearch, Logstash, Kibana – Elastic Stack) and I though I would paste some of my notes here. The

Read More Indexing, Retrieving, Deleting Documents in Elastic Search (Using Kibana)

Python – Difference Between “is” and “==” (double equals)

Python - Difference Between is and double equals

This may be a point where a lot of you may get confused. I see some people using them in if conditions without actually knowing what they do. Let me try to explain the concept with a couple of lines of

Read More Python – Difference Between “is” and “==” (double equals)