diff --git a/src/main/java/org/t246osslab/easybuggy4sb/controller/ServerInfoController.java b/src/main/java/org/t246osslab/easybuggy4sb/controller/ServerInfoController.java new file mode 100644 index 0000000..ca12184 --- /dev/null +++ b/src/main/java/org/t246osslab/easybuggy4sb/controller/ServerInfoController.java @@ -0,0 +1,22 @@ +package org.t246osslab.easybuggy4sb.controller; + +import java.io.IOException; +import java.util.Properties; + +import javax.servlet.http.HttpServletResponse; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +@Controller +public class ServerInfoController { + + @RequestMapping(value = "/serverinfo") + public void serverinfo(HttpServletResponse res) throws IOException { + Properties properties = System.getProperties(); + for (Object key : properties.keySet()) { + Object value = properties.get(key); + res.getWriter().write("
TODO: Under Constructing
+Your browser information
+