How to implement AngularJS using $resource (data connection) to Spring/Hibernate?

Simple enough concept, but apparently trickier than I thought. Not certain how the controller should grab data from Spring.

Any lines of example code for project you've successfully connected deeply appreciated.