静态资源配置

springboot静态资源配置
spring.resources.static-locations
指定静态资源路径(控制器访问路径和样式脚本所在路径) classpath:templates/,classpath:static/
spring.mvc.view.prefix
视图(控制器转发路径) view/
spring.mvc.view.suffix
视图(文件后缀) .html
spring.mvc.static-path-pattern
静态资源访问格式 /static/**
posted @ 2020-07-23 22:54  阿布都日  阅读(250)  评论(0编辑  收藏  举报