Software⏱️ 2 min read📅 2026-06-03

How to Fix: Spring Boot - Cannot determine embedded database driver class for database type NONE

Spring Boot configuration issue

Quick Answer: Check if the database type is set to NONE in application.properties or application.yml, and ensure that the correct driver class is specified for the NONE database type.

To resolve the error "Cannot determine embedded database driver class for database type NONE", you need to specify the correct database type and its corresponding driver in your application.properties file.

🔧 Proven Troubleshooting Steps

Method 1: Specify Database Type and Driver in application.properties

  1. Step 1: Open your application.properties file and add the following configuration:
&# Spring Boot application with NONE database type

Example Configuration:

spring.datasource.type=none

Step 2:

  1. Step 2: Restart your application server to apply the changes.

Method 2: Use Spring Boot's default configuration

  1. Step 1: Remove the NONE database type from your application.properties file.
&# Spring Boot application without NONE database type

Example Configuration:

spring.datasource.type=org.h2.Driver

Step 2:

  1. Step 2: Restart your application server to apply the changes.

By following these steps, you should be able to resolve the "Cannot determine embedded database driver class for database type NONE" error and get your Spring Boot application up and running smoothly.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions