@@ -0,0 +1,575 @@
+package com.microexample.geolocation.controllers;%0A%0Aimport java.net.InetAddress;%0A%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.*;%0A%0A@Controller%0A@RequestMapping(%22/%22)%0Apublic class HomeController %7B%0A%0A    @RequestMapping(method = RequestMethod.GET)%0A    public @ResponseBody String get() %7B%0A        String hostname  = null;%0A        try %7B%0A            hostname = InetAddress.getLocalHost().getHostName();%0A        %7D catch (Exception ex) %7B%0A            hostname =  %22Unknown%22;%0A        %7D%0A        return %22geolocation: %22 + hostname;%0A    %7D%0A%7D%0A

add HomeController