0

I am trying to write Spring Boot application to connect to a Teiid database, I want to use JPA layer on it. I have configured the JDBC Data Source, but since this not well-known database in Spring JPA libraries do not autodetect this source. I have manually setup "spring.jpa.*" properties too. I do have a Hibernate dialect for this database, and it is on the classpath.

So, how does one need to configure JPA layer for a not well-known database in Spring Boot? Thank you for your time.

Ramesh..

Dean Clark
  • 3,770
  • 1
  • 11
  • 26
Ramesh Reddy
  • 554
  • 1
  • 3
  • 8

1 Answers1

0

This is fairly well defined in the Spring Boot documentation.

You can set this explicitly in the application.properties file

spring.datasource.url=jdbc:mysql://localhost/test
spring.datasource.username=dbuser
spring.datasource.password=dbpass
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
Dean Clark
  • 3,770
  • 1
  • 11
  • 26