Given an incomplete MyController
class, write an API with path /
using Spring Boot that sends a string as a response representing today's date in dd-MM-yyyy
format.
Do not modify the Application
class.
Today's Date in Spring Boot by using import LocalDate, DateTimeFormatter, RestController and GetMapping.
Java
Given an incomplete MyController
class, write an API with path /
using Spring Boot that sends a string as a response representing today's date in dd-MM-yyyy
format.
Do not modify the Application
class.