SpringBoot访问静态文件

理论知识

SpringBoot默认扫描的静态目录为static,因此将静态文件放到static目录下就可以了。

操作

  1. 将静态文件放到static目录
  2. 访问,效果符合预期