thymeleaf手动映射根路径映射
到/src/java/resources/templates/index.html下
@RequestMapping("/")
public String index(){
return "index";
}
spring-boot项目静态文件目录:/src/java/resources/static
spring-boot项目模板文件目录:/src/java/resources/templates
到/src/java/resources/templates/index.html下
@RequestMapping("/")
public String index(){
return "index";
}
spring-boot项目静态文件目录:/src/java/resources/static
spring-boot项目模板文件目录:/src/java/resources/templates