package com.gmgauthier.springboot; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import java.text.SimpleDateFormat; import java.util.Date; @RestController @EnableAutoConfiguration public class HelloWorldController { @RequestMapping("/") @ResponseBody String hello() { return "
The Current Date is:" + strDate + "
"; } }