Data Sources, JDBC and JPA

Data Sources, JDBC, and can also be extensively configured through application.properties. ;Listed here are some of the important options:

# Fully qualified name of the JDBC driver.  spring.datasource.driver-class-name=# Populate the database using 'data.sql'. spring.datasource.initialize=true# JNDI location of the datasource. spring.datasource.jndi-name=# Name of the datasource. spring.datasource.name=testdb# Login password of the database. spring.datasource.password=# Schema (DDL) script resource references. spring.datasource.schema=# Db User to use to execute DDL scripts spring.datasource.schema-username=# Db password to execute DDL scripts spring.datasource.schema-password=# JDBC url of the database. spring.datasource.url= ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.