Java, springmvc, json/html delivery