Last active
July 19, 2020 03:31
-
-
Save maheshwarLigade/51483c5a1bae4f60f3ddc5c7c387d245 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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