ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
> 1. 静态资源路径是指系统可以直接访问的路径,且路径下的所有文件均可被用户通过浏览器直接读取。 > 2. 在Springboot中默认的静态资源路径有:classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/ > 3. 在Springboot中可以直接在配置文件中覆盖默认的静态资源路径的配置信息: ~~~ spring: mvc: static-path-pattern: /static/** ~~~