menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Demo Proje...
source image

Javacodegeeks

3w

read

35

img
dot

Image Credit: Javacodegeeks

Demo Project: How @BasePathAwareController Breaks Link Builders

  • The demo project highlights how the @BasePathAwareController breaks link builders in a Spring Data REST app.
  • There are two controllers showcased: One using @BasePathAwareController and the other using @RepositoryRestController.
  • The @BasePathAwareController causes WebMvcLinkBuilder to miss the base path, resulting in broken links.
  • On the other hand, @RepositoryRestController preserves the base path correctly in generated links, ensuring the URLs are correct.

Read Full Article

like

2 Likes

For uninterrupted reading, download the app