JAVA WEBB APPS AND SPRING BOOT Flashcards
1
Q
What is a Servlet API?
A
The foundation of Java Web Applications
+a Java class that extends the superclass HttpServlet
+handles the HTTP requests and responses
2
Q
Where is the Servlet?
A
lives inside a Servlet Container that “translates” between HTTP and Java method calls
3
Q
What do you need to create a RestController class?
A
Add a @RestController annotation to the class Add a method with a @GetMapping annotation, that returns a String
4
Q
What is JSON?
A
A way to represent data