Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialChris McClellan
3,935 PointsDuring runtime, getting an error message "Application Failed to Start."
For the "Introducing Spring Data REST" section of the course, "Build a REST API in Spring":
The application is refusing to start giving the error message "Application Failed to Start." Its recommendation is to "define a bean name 'entityManagerFactory' in my configuration."
Is this something that I need to do or is this possibly a configuration error in my build.gradle file?
(Based on other videos, it sounds like "buildscript" is no longer used, so I guessed on parts of the configurations).
Here is my build.gradle file:
plugins { id 'java' id 'org.springframework.boot' version '1.4.3.RELEASE' }
group 'com.teamtreehouse' version '1.0-SNAPSHOT' sourceCompatibility = 1.8
repositories { mavenCentral() }
dependencies { compile 'org.springframework.boot:spring-boot-starter-data-rest' compile 'org.springframework.boot:spring-boot-starter-data-jpa' compile 'org.springframework.data:spring-data-rest-hal-browser' compile 'org.springframework.boot:spring-boot-starter-security' compile 'com.h2database:h2' }
Thanks!!