Skip to content

Instantly share code, notes, and snippets.

@maheshwarLigade
Last active July 19, 2020 03:31
Show Gist options
  • Save maheshwarLigade/51483c5a1bae4f60f3ddc5c7c387d245 to your computer and use it in GitHub Desktop.
Save maheshwarLigade/51483c5a1bae4f60f3ddc5c7c387d245 to your computer and use it in GitHub Desktop.
package com.techwasti.spring.buildpackex.springboot23ocibuildpackex;
import java.util.Date;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class CurrentDateController{
@GetMapping("/gettodaysdate")
public String getTodaysDate(){
return new Date().toString();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment