Welcome to the Treehouse Community
Looking to learn something new?
Robert Goddard15,019 Points
Why not make GifRepository a static class in this case?
Since there is only one method being called on it that seems to be a utility method, why wouldn't that findByName just be a static method and called as a class method (e.g. GifRepository.findByName(...) ) ? I know that the example is showing autowiring, but is there a benefit to instantiating it over just calling it statically?
Sławomir Lasik7,792 Points
When You will consider testing this application You will understand ... ;)