Error Creating Bean With Name ‘Entitymanagerfactory’

The error message ‘Error creating bean with name ‘entitymanager” may appear if you have tried to start an application with debug enabled, but you have encountered an error while creating the bean. Usually, you’d be able to see the auto-configuration report if you enable debugging.

This error message is caused by Spring Boot not being able to correctly determine your embedded database driver class. You should also make sure that you have added your MySQL JDBC JAR file to your classpath. Then, you can connect your application to your MySQL database.