mercredi 29 septembre 2021

Spring Interface Driven Controllers best practices

I used to write @RestControllers without interface, but suddenly saw article https://www.baeldung.com/spring-interface-driven-controllers, describing such pattern Interface Driven Controllers. So the question is: is there best practice to create controllers without implementing interface or with special interface per controller with annotated methods, for example @GetMapping, @RequestBody, @PathVariable etc. and implement it?

Aucun commentaire:

Enregistrer un commentaire