spring-boot-api-project-seed
spring-boot-api-project-seed copied to clipboard
hello 使用freemarker 一直重定向
如访问 http://localhost:8080/hello 页面错误为: {"code":404,"message":"接口 [/index] 不存在"}
配置文件里面去掉 spring.resources.add-mappings=false 这行是 选择不开启默认的资源处理,不开启的话是找不到你的静态资源的
嗯,楼上说的没错,因为考虑到是个API项目所以设置为false