Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Spring with Hibernate Integrating Hibernate with Spring Spring Review

Lakshman Erukulla
Lakshman Erukulla
5,616 Points

Kindly tell the answers for this

Kindly tell the answers for this question

3 Answers

Olga Ivancic
Olga Ivancic
8,137 Points

It linked to the wrong question. But here all the answers to the quiz:

Q: Which of the following annotations is used for mapping a request URI to a method in a Spring controller? A: @RequestMapping

Q: In the MVC architecture, it is the responsibility of a ____ to store all the underlying data of our application. A: model

Q: Which component will fetch model data, supply that data to views, as well as handle the routing of incoming requests? A: Controller

Q: The role of a view in the MVC architecture is to present data. Which of the answers below best describes where our view code resides? A: Thymeleaf templates

Q: Which annotations are needed for each task in Spring? (include @ sign) A: @ComponentScan: used on a configuration class for telling the Spring Framework to scan for components A: @Configuration: for any class that contains application configuration code A: @Controller: for any controller classes, which will handle URI requests

Olga Ivancic
Olga Ivancic
8,137 Points

It's @RequestMapping annotation

Lakshman Erukulla
Lakshman Erukulla
5,616 Points

I think there are 3 questions here. I have answered as below:

@ComponentScan @EnableAutoConfig @RequestMapping

Kindly let me know if it is wrong.