@@ -0,0 +1,848 @@
+package com.hellokoding.springboot;%0A%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.ui.Model;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestParam;%0A%0A@Controller%0A@RequestMapping(%22/sub%22)%0Apublic class TestSubController %7B%0A%09@RequestMapping(%22/a%22)%0A    public String controllerA(Model model, @RequestParam(value=%22name%22, required=false, defaultValue=%22sub/A%22) String name) %7B%0A        model.addAttribute(%22name%22, name);//add jsp field variable%0A        return %22index%22;//page name to return%0A    %7D%0A%09@RequestMapping(%22/b%22)%0A    public String controllerB(Model model, @RequestParam(value=%22name%22, required=false, defaultValue=%22sub/B%22) String name) %7B%0A        model.addAttribute(%22name%22, name);//add jsp field variable%0A        return %22index%22;//page name to return%0A    %7D%0A%7D%0A

test sub directory