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 trialAnge G
Java Web Development Techdegree Student 1,647 PointsDatabase has no being populated with Courses?
@Component public class DatabaseLoader implements ApplicationRunner { private final CourseRepository courses;
@Autowired
public DatabaseLoader(CourseRepository courses) {
this.courses = courses;
}
@Override
public void run(ApplicationArguments args) throws Exception {
Course course = new Course("Java Basis", "https://teamtreehouse.com");
courses.save(course);
}
}
I used the below implementation to populate the Database with Courses, unfortunately the database is not populated with Courses and i dont know why. Help
Abdelaziz ADIB
520 PointsAbdelaziz ADIB
520 Pointssame for me, did u fix it?