Hi guys,
Using Spring Boot, I was wondering when using the @GetMapping() method, is it a good practice to do letter-for-letter reference when returning a particular file such an HTML, or have more practical text in the URL?
Example:
or should it be strictly what the file name is?
Using Spring Boot, I was wondering when using the @GetMapping() method, is it a good practice to do letter-for-letter reference when returning a particular file such an HTML, or have more practical text in the URL?
Example:
Code
@GetMapping("/favourite-apps")
public String goFavApps() {
return "favapps.html";
}or should it be strictly what the file name is?



