New game
Download
Get Academic Plan
Share game
Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

Spring_Boot_Day_2_Recap_Quiz

Quiz

Played 13

About this activity

Spring Boot Recap Quiz

Created by

India

Download the paper version to play

Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
Spring_Boot_Day_2_Recap_Quiz
 

Spring_Boot_Day_2_Recap_QuizOnline version

Spring Boot Recap Quiz

by Birendra Singh
1

Which of the following is part of Bean Validation API?

2

@PostMapping("/save") public ResponseEntity saveUser(@RequestBody @Valid User user) { return ResponseEntity.ok("Saved"); } What does @Valid do here?

3

public ResponseEntity saveUser(@RequestBody User user) {} Why validation is not triggered?

4

Which object stores validation errors?

5

@PostMapping("/save") public String save(@Valid User user, Errors errors) { if(errors.hasErrors()) { return "error"; } return "success"; } What is errors.hasErrors() checking?

6

Which strategy uses file extension like .json?

7

http://localhost:8080/users?format=xml Which strategy is used?

8

Which class is used for message resolution?

9

Which bean integrates validation with messages?

10

What does @ControllerAdvice do?

11

@PostMapping("/save") public ResponseEntity save(@Valid @RequestBody User user, Errors errors) { if(errors.hasErrors()) { return ResponseEntity.ok(errors.getAllErrors()); } return ResponseEntity.ok("Saved"); } What is the issue?

12

Which is required for creating custom validator?

13

Given: spring.mvc.contentnegotiation.favor-path-extension=true spring.mvc.contentnegotiation.favor-parameter=true Which has higher priority?

14

@Bean public MessageSource messageSource() { ResourceBundleMessageSource ms = new ResourceBundleMessageSource(); ms.setBasename("messages"); return ms; } Where should messages.properties be placed?

Written answer

15

Which connects validation messages to messageSource?

16

@ControllerAdvice public class GlobalHandler { @ExceptionHandler(Exception.class) public String handle() { return "error"; } } What is the scope?

17

What does naming strategy control?

Are you sure you want to leave the page?

If you leave the page, you will lose your game progress.