2020
10-08
10-08
Spring boot文件路径映射配置代码实例
springboot配置本地资源映射路径需要配置一下映射资源位置,下面来介绍一下过程。1.添加配置类packageorg.jcut.tools;importorg.springframework.beans.factory.annotation.Value;importorg.springframework.stereotype.Component;importorg.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;importorg.springframework.web.servlet.config.annotation.WebMvcConfigurer;@ComponentpublicclassMvcC...
继续阅读 >