Spring boot 2.x 中静态资源不能访问,配置webmvc
Spring boot 1.x 的项目,升级为Spring boot 2.x 后,静态资源不能访问了,出现404,这是由于 Spring boot 2.x 对webmvc的配置与之前不同。 Spring boot 2.x 配置webmvc,实现WebMvcConfigurer接口即可 。 WebMvcConfigure阅读更多Spring boot 2.x 中静态资源不能访问,配置webmvc[…]
jvm123-java技术分享站
Spring boot 1.x 的项目,升级为Spring boot 2.x 后,静态资源不能访问了,出现404,这是由于 Spring boot 2.x 对webmvc的配置与之前不同。 Spring boot 2.x 配置webmvc,实现WebMvcConfigurer接口即可 。 WebMvcConfigure阅读更多Spring boot 2.x 中静态资源不能访问,配置webmvc[…]