How to configure JNDI datasource for MySQL in Apache Tomcat with Spring Boot web application

preview_player
Показать описание
How to configure JNDI datasource for MySQL in Apache Tomcat with Spring Boot web application.

# Spring Boot version : 2.1.6.RELEASE
# MySQL connector version : 8.0.16

1. Open Eclipse.

2. Create a runnable spring boot rest application connecting with MySQL database.

7. Edit or create a new config class with code

7. Create a war file of your project and deploy it on tomcat server. After deploying application start the server.

8. Test the application. We have test the application that it is able to connect with both schema

9. Finish.

Thank You :)

#java #eclipseide #programming #coding #developer #mysql #jndi #tips #tricks
Рекомендации по теме
visit shbcf.ru