请求地址加上.ftl提示请求地址错误
在配置文件中也配置了后缀
在配置文件中也配置了后缀
2018-08-27
@Controller
@RequestMapping("/ftl")
public class FreemarkerController {
@Autowired
private Resource resource;
@RequestMapping("/index")
public String index(ModelMap map) {
map.addAttribute("resource", resource);
return "freemarker/index";
}
@RequestMapping("/center")
public String center() {
return "freemarker/center/center";
}
}
举报