Image文件夹映射代码,添加在Startup.cs的Configure
app.UseFileServer(new FileServerOptions()
{
FileProvider = new PhysicalFileProvider
(
Path.Combine(Directory.GetCurrentDirectory(), @"FileExport/")), //实际目录地址
RequestPath = new Microsoft.AspNetCore.Http.PathString("/FileExport"), //用户访问地址
EnableDirectoryBrowsing = true //开启目录浏览
});