Migrating Spring to Spring Boot

How to migrate from Spring to Spring Boot.

Chirag S P
As more and more applications move towards platform-as-a-service(PAAS), many companies are looking to migrate from Spring MVC to Spring Boot. Migrating from Spring MVC to Spring Boot involves quite a few changes affecting the entire application. In this article I will explain my experience on migrating Spring MVC to Spring Boot in my current company and the issues I faced doing the same. 1. POM Changes First thing to do, is the POM changes.

Access Gitlab from local using two factor token

How to push changes to Gitlab, when two factor authentication is enabled.

Chirag S P
When two factor authentication is enabled in Gitlab, we get authentication error when we try to push changes from our local to Gitlab. The error look like something as shown below, remote: HTTP Basic: Access denied To be able to push to Gitlab, we need to setup personal token in Gitlab and set it up in our local Git project as well. In Gitlab go to User Profile at top right end,

How to set Java options in Tomcat

Setup Java options using GUI and command line

Chirag S P
When running tomcat we might need to setup Java options in it . In this article we will go through on how to setup JVM (i.e Java Options) options in Tomcat 8-8.5 in windows. In windows we can setup Java options using one of the below methods Using Tomcat.exe gui Go to Tomcat folder→bin and open Tomcatw.exe. This will open the GUI. Switch to ‘Java’ tab. Put in Java Options in Java tab:

How to Fix CORS Error in Spring boot JWT Security

Solution for CORS error in Sprint Boot Security deployed in Heroku

Chirag S P
CORS error is one of the most annoying errors which one can encounter while developing web applications. CORS is a mechanism that allows Server to indicate to Browser to allow connections from origins other than its own. Browser will send a pre-flight connection request(an Options request) to server to check if server will allow the request. If server allows the request from this origin it will respond with Access-Control-Allow-Origin. I encountered this error while developing an Angular application.