While working on a #SpringMVC feature, I was reminded how much clarity comes from choosing the right annotation:

@PathVariable vs @RequestParam
If the value identifies which resource you’re accessing -> @PathVariable
If the value refines how you query it -> @RequestParam

Example:
/rooms/42 -> room 42
/rooms?date=2025-01-15 -> rooms filtered by date

The code works either way, but the API tells a clearer story when the intent is right.

#Java #Spring

@sebsauvage je l'utilise sur un projet associatif. En backend, java avec #SpringMVC (qui a justement évolué pour gérer le retour de multiples fragments html en réponse à une requête http) et #Thymeleaf . Pas dans un cadre navigation type SPA mais plus pour actualiser quelques fragments de page. Plutôt bien fait pour moi qui ne suis pas fan de js...

Good to see the Grails framework making progress! new 6.1 release is out.

https://grails.org/blog/2023-11-14-introducing-grails-6_1_0.html

I don't use it much these days, but I miss the ways that #grails & #groovy made working in #springMVC and #java / on the #jvm a lot more pleasant.

Introducing Grails Framework 6.1.0 Release

It highlights the changes and improvements made in this release, provides information about bug fixes, dependency upgrades, and acknowledges the contributions of various developers.

Functional Routing in Spring MVC - Xavier Bouclet

Functional Routing in Spring MVC 1. Purpose of this blog post

I wonder if it is possible to have something like a SpringBootTest in pure #SpringMVC, i.e. start complete #Spring application along with some external services via #testcontainers?

I'm trying to improve a legacy Spring application, which can't be ported to #SpringBoot easily. #java

Apache Tiles ist echt ganz schön alt, ich sollte das mal dringend mit Thymeleaf ersetzen. Heute dazu mal ein kleines Testprogramm gemacht.

Freemarker kenn ich noch. So richtig aktiv ist aber kein Templating-System mehr oder?

#java #springmvc #webdevelper