Share:- Whatsapp Facebook Facebook

------------------------------------- Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

How do we connect an external database like MSSQL or oracle?

0 votes
How do we connect an external database like MSSQL or oracle?
asked Feb 8 in Spring Boot by KUNDETI SIVANNARAYANA

1 Answer

0 votes
In spring boot connect with external database like mysql or oracel follow the following steps:-

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

Add dependency for mqsql connector to pom.xml

Step 2:- The next step is remove H2 Dependency from pom.xml

Step 3:- Includes the schema and table to establish your database.

Step 4:- The next step is configuring of the database by using Configure to connect to your database.

Step 5:- And the last step is to restart your application and now your connection is ready to use.
answered Feb 8 by me_vinod12 (2,480 points)