pushoo-sharma / production_reference

Welcome to the comprehensive guide for building high-quality Spring Boot applications! This production reference outlines the best practices and essential considerations to ensure the development of robust, scalable, and maintainable modern-day Spring Boot applications.
0 stars 0 forks source link

Resolve Missing entityManagerFactory Bean in BookmarkService #4

Open pushoo-sharma opened 11 months ago

pushoo-sharma commented 11 months ago

Resolve Missing entityManagerFactory Bean in BookmarkService

Issue Description

Problem

The application is encountering an issue where the BookmarkService class is unable to find the required entityManagerFactory bean during initialization. This is resulting in a runtime error: "Parameter 0 of constructor in com.productionready.canada.domain.BookmarkService required a bean named 'entityManagerFactory' that could not be found."

Expected Behavior

The BookmarkService class should be able to successfully inject the entityManagerFactory bean.