SpringBoot配置静态资源路径

首先用的templates 放置html

然后application.yml 加入

spring:
    resources:
      static-locations: classpath:/static/

猜你喜欢

转载自blog.csdn.net/qq_19006223/article/details/81167828