I want to customize the page controller in a DXA JAVA implementation. Is that possible, and how?

I tried to extend the DXA PageController, but of course [that does not work][2] 

    @Controller
    public class MyPageController extends PageController {
    
        @RequestMapping(
                value = {"/jan"},
                params = {"test"},
                produces = {"text/html", "*/*"}
        )
        @Override
        public String handleGetPage(HttpServletRequest request, HttpServletResponse response) throws Exception {
            // do your stuff
            return super.handleGetPage(request, response);
        }
    }

The problem is that in Spring there is no way to override the `@RequestMapping`, and each mapping has to be unique.

@bearddev had a [similar question][1] for DXA .NET. The .NET answer does not apply to DXA JAVA as routing is not configured in a single place in DXA JAVA.

The [DXA documentation mentions][3] how to *"Create a controller class"*, but that only applies to region and entity controllers.

  [1]: https://tridion.stackexchange.com/questions/15692/dxa-custom-controller-for-pagemodel
  [2]: https://stackoverflow.com/questions/29751416/how-to-override-requestmapping-in-another-controller
  [3]: https://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v7/GUID-B90B888E-7A84-4BB7-8832-8563C26C2646