How to connect to an external database like MSSQL or oracle with Spring boot?

devquora
devquora

Posted On: Feb 22, 2018

 

It is done in the following steps.

Step 1 -

The first step to connect the database like Oracle or MySql is adding the dependency for your database connector to pom.xml.

Step 2 -

The next step is the elimination of H2 Dependency from pom.xml

Step 3 -

Step 3 includes the schema and table to establish your database.

Step 4 -

The next step is configuring of the database by using Configure application.properties to connect to your database.

Step 5-

And the last step is to restart your device and your connection is ready to use.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Spring Boot Interview questions

    What does Spring Boot mean?

    Spring Boot is a system from “The Spring Team” to facilitate the bootstrapping and development of new Spring Applica..

    Spring Boot Interview questions

    What are the various Advantages Of Using Spring Boot?

    Here are some of the various advantages of using Spring Boot:It is quite easy to create Spring Based applications with..

    Spring Boot Interview questions

    What are the various features of Spring Boot?

    Various Spring Boot Features are as follows:Web Development Spring Application Application occasions and listeners Adm..