目录结构
引用路径
<link rel="stylesheet" href="../static/layui/css/layui.css" type="text/css"/>
application.properties
spring.mvc.static-path-pattern=/static/**
spring.resources.static-locations=classpath:/static
配置了第一项后,路径就必须加static才能访问到,去掉的话就是默认访问static目录加载资源
参考
https://www.cnblogs.com/inku/p/12597630.html
https://blog.csdn.net/ganpanlin/article/details/84661126