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 trial

Java Spring with Hibernate Integrating Hibernate with Spring Configure Spring for Hibernate

Add a Spring Bean to the DataConfig class that configures a BasicDataSource with the following settings: - Connection UR

Add a Spring Bean to the DataConfig class that configures a BasicDataSource with the following settings: - Connection URL: jdbc:h2:mem:contactmgr - Driver class name: org.h2.Driver

1 Answer

Alexander Nikiforov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 Points

Please paste your code.

I can help only If you tell me with what do you have problems with ...

Obviously just providing answer will be improper....

I will give you a very close Hint what video to re-watch

https://teamtreehouse.com/library/create-a-sessionfactory-and-datasource

Starting around 10:00 should help you.

Let me know if you need more help, and remember to paste code, always paste code

Ivailo Hristov
Ivailo Hristov
6,297 Points

Very helpfull answer, thanks !