静态资源配置

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/**

猜你喜欢

转载自www.cnblogs.com/abuduri/p/13369397.html