Here are the fixes in this chapter:
- Fix—adding/registering to request mapping: If you run the mvn spring-boot:run command after a clean install and then open the page at https://localhost:8080/register, you will see a 404 error page. This is because we haven't added /register to @GetMapping inside MainController. Let's fix it now. Once it is fixed, try to perform a registration from the register page. After registration, you should see the debug information that UserRegisteredEventHandler created.
Not adding /register to the mapping reveals a defect in our end-to-end testing. The end-to-end test is supposed to capture this kind of issue during building. Unfortunately, it didn't. We will improve our end-to-end testing in ...