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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Where is the Servlet?

A

lives inside a Servlet Container that “translates” between HTTP and Java method calls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is JSON?

A

A way to represent data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly