springboot一般默认static为静态资源路径,所以访问静态资源时不需要加上static,想要加上static可以访问,需要在配置文件中加入
spring:
mvc:
static-path-pattern: /static/**
springboot一般默认static为静态资源路径,所以访问静态资源时不需要加上static,想要加上static可以访问,需要在配置文件中加入
spring:
mvc:
static-path-pattern: /static/**
Spring boot 工具静态类无法使用 Mapper
发现 static 或 public 下面的图片无法访问 spring: profiles: active: dev resources: s\
springboot在处理web静态请求上和springmvc在使用是有些不同的,同时还增加了一些新的特性。目录1.静态页面2.动态页面3.webjars
springboot直接访问HTML文件
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M