#pr

spring boot系列博客

https://www.cnblogs.com/ityouknow/category/914493.htmlhttps://www.cnblogs.com/ityouknow/category/994104.html...
代码星球 ·2020-04-05

HtmlCleaner CleanerProperties 参数配置(转自macken博客,链接:http://macken.iteye.com/blog/1579809)

HtmlCleanerCleanerProperties参数配置ParameterDefaultExplanationadvancedXmlEscapetrueIf this parameter is set to true, ampersand&n...

SpringMVC 一次请求加载Controller多次

原因之一:HTML页面中css样式background:url()或img、iframe标签src设置为空例:<div></div><imgsrc=""><iframesrc=""></iframe>待续。。。---------------------作者:y...

SVN异常,Previous operation has not finished; run 'cleanup' if it was interrupted

SVN在提交、更新、cleanup时报错:Problemrunninglogsvn:FailedtoruntheWCDBworkqueueassociatedwith'D:workspacemsdev',workitem9414(file-installWebRoot/WEB-INF/lib/tms-express-a...

vue 中使用promise

init1(){returnnewPromise((resolve,reject)=>{letdata={dateStr:this.time};api.get('url',null).then(res=>{//自己的操作resolve()}).catch(err=>{reject()});});};i...
代码星球 ·2020-04-05

SpringMVC 拦截器(interceptors)对样式(css),JavaScript(js),图片(images)链接的拦截

因为在web.xml配置了<servlet-mapping><servlet-name>appServlet</servlet-name><url-pattern>/</url-pattern></servlet-mapping>导致对所有连接都会...

poj 3262 Protecting the Flowers 贪心

题意:给定n个奶牛,FJ把奶牛i从其位置送回牛棚并回到草坪要花费2*t[i]时间,同时留在草地上的奶牛j每分钟会消耗d[j]个草    求把所有奶牛送回牛棚内,所消耗草的最小值 思路:贪心,假设奶牛a和奶牛b所处位置为,    交换前....(ta,da)(tb,db)...

ProducerConsumerQueue

The folly::ProducerConsumerQueue classisaone-producerone-consumerqueuewithverylowsynchronizationoverhead.Thequeuemustbecreatedwithafixedmaximumsize(an...
代码星球 ·2020-04-05

Custom Exception in ASP.NET Web API 2 with Custom HttpResponse Message

AbenefitofusingASP.NETWebAPIisthatitcanbeconsumedbyanyclientwiththecapabilityofmakingHTTPcallsandprocessingJSONdata.TheclientcanuseHTTPmethodstoperformRead/Writ...

8 ways to improve ASP.NET Web API performance

ASP.NETWebAPIisagreatpieceoftechnology.WritingWebAPIissoeasythatmanydevelopersdon’ttakethetimetostructuretheirapplicationsforgreatperformance.Inthisarticl...
代码星球 ·2020-04-05

Autofac Property Injection and Method Injection

Whileconstructorparameterinjectionisthepreferredmethodofpassingvaluestoacomponentbeingconstructed,youcanalsousepropertyormethodinjectiontoprovidevalues.Property...

Carrying per-request context using the HttpRequestMessage.Properties

 InaWebAPIapplication,IuseCastleWindsortosupplyservicesconfiguredwithPerWebRequestlifetimeandeverythingworksfineonIIS.However,whenIusetheASP.NETWebAPISelfH...

PreApplicationStartMethodAttribute的使用

先预备一个类,用于Start时调用publicstaticclassMyPreApplicationStart{publicstaticvoidRegisterGlobalFilters(GlobalFilterCollectionfilters){if(filters!=null)filters.Add(newHan...

ASP.NET基于Redis的Provider库

因为session基于本地cache,以前我们自己写分布式缓存,或者数据库存储,或者cookie加密存储,来保存用户状态信息,但较少的直接通过创建一个继承 SessionStateStoreProviderBase 类,来实现自定义会话状态存储提供程序。但有ASP.NET官方的福利,我们就不能放过。...
代码星球 ·2020-04-05

Web API 源码剖析之默认消息处理程序链之路由分发器(HttpRoutingDispatcher)

我们在上一节讲述了默认的DefaultServer(是一个类型为HttpServer的只读属性)。本节将讲述DefaultHandler(是一个HttpMessageHandler的只读属性)。在WebAPI里默认是的一个HttpRoutingDispatcher类型,它继承于HttpMessageHandler。我们...
首页上一页...457458459460461...下一页尾页