ERROR [org.apache.velocity] ResourceManager : unable to find resource 'layout.vm' in any resource loader
问题 MyController.java: @Controller public class ForemanController { @RequestMapping({"/index", "/"}) public ModelAndView home(Model model){ Map<String, String> map = new HashMap<String, String>(); // .. fill map return new ModelAndView("index", "map", map); } } ServletInitializer.java: public class ServletInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { @Override protected Class<?>[] getRootConfigClasses() { return new Class<?>[0]; } @Override protected Class<?>[]