解决方案:
在application.properties中添加
spring.resources.static-locations=classpath:static/
在页面导入时例如:
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
解决方案:
在application.properties中添加
spring.resources.static-locations=classpath:static/
在页面导入时例如:
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">