I want to return a hyperlink in the response body for a get request using Spring Boot, but i am getting string as a response and not link
@GetMapping("/getLinkToFile/{id}")
public URL getLinkToFile(@PathVariable int id) throws Exception {
URL base = new URL("https://file-examples.com/wp-content/uploads/2017/02/file_example_CSV_5000.csv");
return base;
}