Need to include the @Configuration annotation in the class definition
Note: This Question is unanswered, help us to find answer for this one
What is the difference between the @Repository and the @Controller annotations in Spring?
Answer & Explanation
Correct Answer:
"@Repository" is used as a stereotype for the persistence layer, while "@Controller" is used as a stereotype for the presentation layer.
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements is true about the @ModelAttribute annotation?
Answer & Explanation
Correct Answer: It can be used to expose reference data to a web view.
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements is true about the @RequestParam annotation?
Answer & Explanation
Correct Answer: It indicates that a method parameter should be bound to a web request parameter.
Note: This Question is unanswered, help us to find answer for this one
Fill in the blank:
The _______ enables the use of the bean element’s attributes, instead of nested <property/> elements, to describe property values and/or collaborating beans.
Answer & Explanation
Correct Answer:
p-namespace
Note: This Question is unanswered, help us to find answer for this one
Fill in the blank:
In Spring's XML-based configuration, the _______ attribute of the <property/> element specifies a property or constructor argument as a string representation.
Answer & Explanation
Correct Answer:
name
Note: This Question is unanswered, help us to find answer for this one
Which statement is correct for @Controller annotation?
Answer & Explanation
Correct Answer: The @Controller annotation indicates that a particular class serves the role of a controller. It does not require you to extend any controller base class or reference the Servlet API.
Note: This Question is unanswered, help us to find answer for this one
What does the following code do?
@RequestMapping("/{id}/**")
public void foo(@PathVariable("id") int id, HttpServletRequest request) {