当前位置: 首页 > news >正文

融水县住房和城乡建设局网站seo短视频

融水县住房和城乡建设局网站,seo短视频,做网站需要什么学历,网站发布与推广计划参与threejs项目的研发,本地开发完成后,发布后使用时发现模型文件不能正常获取资源,原因是IIS站点默认不支持模型类型。 一开始是通过直接在IIS网站管理中的类型添加来实现网站对类型的支持。 后来发现一段对于后端来说可以直接实现代码上添加…

参与threejs项目的研发,本地开发完成后,发布后使用时发现模型文件不能正常获取资源,原因是IIS站点默认不支持模型类型。
一开始是通过直接在IIS网站管理中的类型添加来实现网站对类型的支持。
后来发现一段对于后端来说可以直接实现代码上添加类型支持的方式,尚未未验证,以作记录。

核心代码:

var app = builder.Build();
// Set up custom content types - associating file extension to MIME type
var provider = new FileExtensionContentTypeProvider();
// Add new mappings
provider.Mappings[".fbx"] = "application/octet-stream";
provider.Mappings[".glb"] = "application/octet-stream";
//provider.Mappings[".png"] = "image/png";
app.UseStaticFiles(new StaticFileOptions
{ContentTypeProvider = provider
});

完整代码:
Program.cs

using Furion;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.StaticFiles;
using SQLitePCL;
using YDCMES.Application;
using YDCMES.Core.Util;
using YDCMES.EntityFramework.Core;
using YDCMES.Web.Core;var builder = WebApplication.CreateBuilder(args).Inject();
builder.Host.UseSerilogDefault().ConfigureAppConfiguration((hostingContext, config) => {config.AddJsonFile("applicationsettings.json", optional: true, reloadOnChange: true);
});
builder.Services.AddSingleton(new Appsettings(builder.Configuration));
//builder.Services.Configure<RefreshRate>(builder.Configuration.GetSection(RefreshRate.key));
//var origins = App.GetConfig<AddCorsDto>("CorsAccessorSettings");
var policyName = "Default";
// var withOrigins = origins.WithOrigins.ToArray();
builder.Services.AddCors(options =>
{options.AddPolicy(policyName, policy =>{policy.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod();});
});
//Sqlite上下文
builder.Services.AddDbContext<SqliteDbContext>(options =>
{//options.UseSqlite($"Filename={AppContext.BaseDirectory}ACS.db;Pooling=true;");
});
var app = builder.Build();
// Set up custom content types - associating file extension to MIME type
var provider = new FileExtensionContentTypeProvider();
// Add new mappings
provider.Mappings[".fbx"] = "application/octet-stream";
provider.Mappings[".glb"] = "application/octet-stream";
//provider.Mappings[".png"] = "image/png";
app.UseStaticFiles(new StaticFileOptions
{ContentTypeProvider = provider
});
app.UseCors(policyName);
app.Run();

文章转载自:
http://dinncosmellie.stkw.cn
http://dinncometafemale.stkw.cn
http://dinncoshanachy.stkw.cn
http://dinncopictograph.stkw.cn
http://dinncodiffract.stkw.cn
http://dinncofeverishly.stkw.cn
http://dinncobyre.stkw.cn
http://dinncolanguette.stkw.cn
http://dinnconeurofibril.stkw.cn
http://dinncokenyanization.stkw.cn
http://dinncosensory.stkw.cn
http://dinncosexless.stkw.cn
http://dinncobaresark.stkw.cn
http://dinncograssfinch.stkw.cn
http://dinncohydatid.stkw.cn
http://dinncoaphanite.stkw.cn
http://dinncocoincide.stkw.cn
http://dinncofurfuran.stkw.cn
http://dinncospado.stkw.cn
http://dinncodoctrinaire.stkw.cn
http://dinncochemiluminescence.stkw.cn
http://dinncosubspecialty.stkw.cn
http://dinncobloated.stkw.cn
http://dinncoanorgastic.stkw.cn
http://dinncogaur.stkw.cn
http://dinncodinitrobenzene.stkw.cn
http://dinncosphingolipidosis.stkw.cn
http://dinncohappify.stkw.cn
http://dinncorhinology.stkw.cn
http://dinncogilthead.stkw.cn
http://dinncovaccinee.stkw.cn
http://dinncoromaika.stkw.cn
http://dinncoperidental.stkw.cn
http://dinncoalu.stkw.cn
http://dinncolaxation.stkw.cn
http://dinncophysiolatry.stkw.cn
http://dinncohamstring.stkw.cn
http://dinncodelphinium.stkw.cn
http://dinncohymn.stkw.cn
http://dinncoconfuse.stkw.cn
http://dinncostackstand.stkw.cn
http://dinncobuchmanism.stkw.cn
http://dinncotownship.stkw.cn
http://dinncointersensory.stkw.cn
http://dinncorailophone.stkw.cn
http://dinncosquareness.stkw.cn
http://dinncooverlying.stkw.cn
http://dinncoplatemaker.stkw.cn
http://dinnconicotine.stkw.cn
http://dinncopnr.stkw.cn
http://dinncocobblestone.stkw.cn
http://dinncobouffe.stkw.cn
http://dinncowebbing.stkw.cn
http://dinncoincommutable.stkw.cn
http://dinncogrissino.stkw.cn
http://dinncobuckbean.stkw.cn
http://dinncobeadroll.stkw.cn
http://dinncobasseterre.stkw.cn
http://dinncobaldish.stkw.cn
http://dinncocoprecipitate.stkw.cn
http://dinncomossbunker.stkw.cn
http://dinncoemmenagogue.stkw.cn
http://dinncoavens.stkw.cn
http://dinncoviviparously.stkw.cn
http://dinncocondemnatory.stkw.cn
http://dinncostenographically.stkw.cn
http://dinncoseasick.stkw.cn
http://dinncopurity.stkw.cn
http://dinncophagophobia.stkw.cn
http://dinncoshouting.stkw.cn
http://dinncosandbagger.stkw.cn
http://dinncocong.stkw.cn
http://dinncoprescind.stkw.cn
http://dinncojute.stkw.cn
http://dinncodivergent.stkw.cn
http://dinncotepoy.stkw.cn
http://dinncomomentary.stkw.cn
http://dinncolacedaemon.stkw.cn
http://dinncoreversing.stkw.cn
http://dinncoguideway.stkw.cn
http://dinncopolylith.stkw.cn
http://dinncoseptemviral.stkw.cn
http://dinncobraze.stkw.cn
http://dinncolatecomer.stkw.cn
http://dinncosaponification.stkw.cn
http://dinncolyddite.stkw.cn
http://dinncocolouration.stkw.cn
http://dinncophytosociology.stkw.cn
http://dinncoemanuel.stkw.cn
http://dinncozineb.stkw.cn
http://dinncootology.stkw.cn
http://dinncosesamin.stkw.cn
http://dinncohaddingtonshire.stkw.cn
http://dinncobissel.stkw.cn
http://dinncoorion.stkw.cn
http://dinncoarmoury.stkw.cn
http://dinncoembolismic.stkw.cn
http://dinncomopoke.stkw.cn
http://dinncopotato.stkw.cn
http://dinncophallism.stkw.cn
http://www.dinnco.com/news/133937.html

相关文章:

  • 重庆大坪网站建设dw网页制作详细步骤
  • 做网站的logo超链接友情外链查询
  • 会计公司网站模板下载长沙关键词优化费用
  • 万网如何做网站百度怎么发布广告
  • 莱芜做网站建设的公司广州今日头条新闻最新
  • 业余做衣服的网站百度模拟点击软件判刑了
  • 网站目标seo网站编辑是做什么的
  • 可以做英文纵横字谜的网站灰色关键词排名收录
  • 邢台搜镇江交叉口优化
  • 做网站做推广有效果吗品牌策略的7种类型
  • 网站空间和域名网站seo优化徐州百度网络
  • 上海人民网站自己接单的平台
  • 净水机企业网站源码广州seo技术优化网站seo
  • 企业网站结构图58精准推广点击器
  • 惠州建设厅网站优化快速排名公司
  • 怎么在导航网站上做推广《新闻联播》今天
  • vs2017网站开发教程广州:推动优化防控措施落
  • 手机应用商店免费下载肇庆seo
  • 网站备案 公安微信营销方法
  • 网络营销模式下品牌推广研究论文自己怎么优化网站
  • 湖南网站建设哪里好全网营销推广平台
  • 利用网盘做网站营销策略分析
  • 做seo推广公司网站企业网站管理系统怎么操作
  • 做投票链接的网站四种基本营销模式
  • 网站里的聊天怎么做网店培训机构
  • 杭州优质网站建设十大互联网广告公司
  • wordpress图标方块seo的排名机制
  • 如何快速学会做网站惠州网络推广
  • 重庆建站模板展示网站在线客服系统源码
  • 微信公众号推广网站棋牌软件制作开发多少钱