web.config配置文件詳解

<?xml version="1.0"?>

<!--注意: 除了手動編輯此文件以外,您還可以使用 Web 管理工具來配置應用程序的設置。可以使用 Visual Studio 中的“網站”->“Asp.Net 配置”選項。

設置和注釋的完整列表在 machine.config.comments 中,該文件通常位于 "Windows"Microsoft.Net"Framework"v2.x"Config 中。-->

<!--Webconfig文件是一個xml文件,configuration是xml文件的根節點,由于xml文件的根節點只能有一個,所以Webconfig的所有配置都是在這個節點內進行的。-->

<configuration>

??<!--指定配置節和命名空間聲明。clear:移除對繼承的節和節組的所有引用,只允許由當前 section 和 sectionGroup 元素添加的節和節組。remove:移除對繼承的節和節組的引用。 section:定義配置節處理程序與配置元素之間的關聯。sectionGroup:定義配置節處理程序與配置節之間的關聯。-->

?<configSections>

??? <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

????? <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

??????? <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

????? </sectionGroup>

??? </sectionGroup>

??? <section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />

?</configSections>

?

?<!--appSettings是應用程序設置,可以定義應用程序的全局常量設置等信息-->

?<appSettings>

??? <add key="1" value="1" />

?

??? <add key="gao" value="weipeng" />

?

?</appSettings>

?

?<!--連接字符串設置-->

?<connectionStrings>

??? <add name="ConnString" connectionString="Data Source=GAO;Initial Catalog=HBWXDate;User ID=sa;password=sa"></add>

??? <add name="111" connectionString="11111" />

?</connectionStrings>

?

?<!--指定應用子配置設置的資源,并鎖定配置設置,以防止它們被子配置文件重寫。page指定應用包含的配置設置的資源.allowOverride是否允許配置文件的重寫,提高配置文件的安全性-->

?<location path="Default.aspx" allowOverride="false">

?

<!--控制asp.net運行時的行為-->

<system.web>

??? <!--identity控制web應用程序的身份驗證標識.-->

??? <identity impersonate="false" />

???

??? <!--標識特定于頁的配置設置(如是否啟用會話狀態、視圖狀態,是否檢測用戶的輸入等)。<pages>可以在計算機、站點、應用程序和子目錄級別聲明.

??? 這里的幾個屬性的意思是默認主頁為Index,主題是Default,不檢測用戶在瀏覽器輸入的內容中是否存在潛在的危險數據(注:該項默認是檢測,如果你 使用了不檢測,一要對用戶的輸入進行編碼或驗證),在從客戶端回發頁時將檢查加密的視圖狀態,以驗證視圖狀態是否已在客戶端被篡改。(注:該項默認是不驗 證)禁用ViewState-->

??? <pages masterPageFile="Index" theme="Default" buffer="true" enableViewStateMac="true" validateRequest="false" enableViewState="false">

????? <!--controls 元素定義標記前綴所在的 register 指令和命名空間的集合-->

????? <controls></controls>

????? <!--將在程序集預編譯期間使用的導入指令的集合-->

????? <namespaces></namespaces>

??? </pages>

???

??? <!--默 認錯誤頁設置,mode:具有On,Off,RemoteOnly 3種狀態。On表示始終顯示自定義的信息; Off表示始終顯示詳細的asp.net錯誤信息; RemoteOnly表示只對不在本地Web服務器上運行的用戶顯示自定義信息.defaultRedirect:用于出現錯誤時重定向的URL地址-->

??? <customErrors defaultRedirect="Err.html" mode="RemoteOnly">

????? <!--特殊代碼編號的錯誤從定向文件-->

????? <error statusCode="403" redirect="NoAccess.htm" />

????? <error statusCode="404" redirect="FileNotFound.htm" />

??? </customErrors>

???

??? <!--配置調試和跟蹤:下面配置的意思是啟動調試(默認),捕獲跟蹤信息,要緩存的跟蹤請求個數(15),跟蹤結果的排列順序-->

??? <trace enabled="true" localOnly="false" pageOutput="true" requestLimit="15" traceMode="SortByCategory"/>

???

??? <!-- 設置 compilation debug="true" 將調試符號插入已編譯的頁面中。但由于這會影響性能,因此只在開發過程中將此值設置為 true。設置默認的開發語言C#。batch是否支持批處理-->

??? <compilation debug="true" defaultLanguage="c#" batch="false">

????? <assemblies>

??????? <!--加的程序集引用,每添加一個程序集,就表示你的應用程序已經依賴了一個程序集,你就可以在你的應用程序中使用了-->

??????? <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

??????? <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

??????? <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

??????? <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

??????? <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

??????? <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

??????? <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

??????? <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

??????? <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

??????? <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

??????? <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

????? </assemblies>

????? <!--定義用于編譯自定義資源文件的生成提供程序的集合。-->

????? <buildProviders>

??????? <!---->

??????? <add extension=".aspx" type="System.Web.Compilation.PageBuildProvider"/>

??????? <add extension=".ascx" type="System.Web.Compilation.UserControlBuildProvider"/>

??????? <add extension=".master" type="System.Web.Compilation.MasterPageBuildProvider"/>

??????? <add extension=".asmx" type="System.Web.Compilation.WebServiceBuildProvider"/>

??????? <add extension=".ashx" type="System.Web.Compilation.WebHandlerBuildProvider"/>

??????? <add extension=".soap" type="System.Web.Compilation.WebServiceBuildProvider"/>

??????? <add extension=".resx" type="System.Web.Compilation.ResXBuildProvider"/>

??????? <add extension=".resources" type="System.Web.Compilation.ResourcesBuildProvider"/>

??????? <add extension=".wsdl" type="System.Web.Compilation.WsdlBuildProvider"/>

??????? <add extension=".xsd" type="System.Web.Compilation.XsdBuildProvider"/>

??????? <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

????? </buildProviders>

??? </compilation>

???

???? ?<!--通 過 <authentication> 節可以配置 ASP.NET 使用的 安全身份驗證模式,以標識傳入的用戶。Windows: 使用IIS驗證方式,Forms: 使用基于窗體的驗證方式,Passport: 采用Passport cookie驗證模式,None: 不采用任何驗證方式-->

??? <authentication mode="Forms">

????? <!--Name: 指定完成身份驗證的Http cookie的名稱.LoginUrl: 如果未通過驗證或超時后重定向的頁面URL,一般為登錄頁面,讓用戶重新登錄。Protection: 指定 cookie數據的保護方式.?

????? 可 設置為:All表示加密數據,并進行有效性驗證兩種方式,None表示不保護Cookie,Encryption表示對Cookie內容進行加 密,validation表示對Cookie內容進行有效性驗證,TimeOut: 指定Cookie的失效時間. 超時后要重新登錄。-->

????? <forms name=".ASPXUSERDEMO" loginUrl="Login.aspx" protection="All" timeout="30"/>

??? </authentication>

??? <!--控制對 URL 資源的客戶端訪問(如允許匿名用戶訪問)。此元素可以在任何級別(計算機、站點、應用程序、子目錄或頁)上聲明。必需與<authentication> 節配合使用。此處的意思是對匿名用戶不進行身份驗證。拒絕用戶weipeng-->

??? <authorization>

??? ??<allow users="*"/>

????? <deny users="weipeng"/>

????? <allow users="aa" roles="aa" />

??? </authorization>

??? <!--站點全球化設置,requestEncoding: 它用來檢查每一個發來請求的編碼.responseEncoding: 用于檢查發回的響應內容編碼.fileEncoding:用于檢查aspx,asax等文件解析的默認編碼,默認的編碼是utf-8-->

??? <globalization requestEncoding="gb2312" responseEncoding="gb2312" fileEncoding="gb2312" />

??? <!--會 話狀態設置。mode: 分為off,Inproc,StateServer,SqlServer幾種狀態?mode = InProc 存儲在進程中特點:具有最佳的性能,速度最快,但不能跨多臺服務器存儲共享.mode = "StateServer" 存儲在狀態服務器中特點:當需要跨服務器維護用戶會話信息時,使用此方法。但是信息存儲在狀態服務器上,一旦狀態服務器出現故障,信息將丟失. mode="SqlServer" 存儲在sql server中特點:工作負載會變大,但信息不會丟失

??? stateConnectionString :指定asp.net應用程序存儲遠程會話狀態的服務器名,默認為本機。sqlConnectionString:當用會話狀態數據庫時,在這里設置連接字符 串。Cookieless:設置為flase時,表示使用cookie會話狀態來標識客戶.timeout表示會話超時時間。-->

??? <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"></sessionState>

??? <!--為 ASP.NET 應用程序配置頁的視圖狀態設置。設置要存儲在頁歷史記錄中的項數。-->

??? <sessionPageState historySize="9"/>???

??? <!--配置asp.net http運行庫的設置。可以在計算機,站點,應用程序和子目錄級別聲明

??? 允許最多的請求個數100,最長允許執行請求時間為80秒,maxRequestLength控制用戶上傳文件的大小,默認是4M。useFullyQualifiedRedirectUrl客戶端重定向不需要被自動轉換為完全限定格式。-->

??? <httpRuntime appRequestQueueLimit="100" executionTimeout="80" maxRequestLength="40960" useFullyQualifiedRedirectUrl="false"/>

??? <!--httpModules在一個應用程序內配置 HTTP 模塊。-->

??? <httpModules>

????? <add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />

????? <add name="Session" type="System.Web.SessionState.SessionStateModule" />

????? <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />

????? <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />

????? <add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule" />

????? <add name="RoleManager" type="System.Web.Security.RoleManagerModule" />

????? <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />

????? <add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" />

????? <add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" />

????? <!--自定義的URL重寫,type基本上就是dll名-->

????? <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" />

????? <add name="Profile" type="System.Web.Profile.ProfileModule" />

??? </httpModules>?

??? <!--httpHandlers用于根據用戶請求的URL和HTTP謂詞將用戶的請求交給相應的處理程序。可以在配置級別的任何層次配置此節點,也就是說可以針對某個特定目錄下指定的特殊文件進行特殊處理。

??? add:指定映射到處理程序的謂詞/路徑。clear:移除當前已配置或已繼承的所有處理程序映射。remove:移除映射到處理程序的謂詞/路徑。remove 指令必須與前一個 add 指令的謂詞/路徑組合完全匹配。該指令不支持通配符。-->

??? <httpHandlers>

????? <remove verb="*" path="*.asmx"/>

????? <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

????? <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

????? <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

????? <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>

??? </httpHandlers>

??? <!--為 Web 應用程序使用的 Cookie 配置屬性。domain:設置 Cookie 域名。httpOnlyCookies:在 Internet Explorer 6 SP1 中啟用 HttpOnlyCookies Cookie 的輸出。默認值為 false。requireSSL:獲取一個指示是否需要安全套接字層 (SSL) 通信的值.-->

??? <httpCookies httpOnlyCookies="false" requireSSL="false"/>?

??? <!--控制 ASP.NET Web 服務及其客戶端的行為。protocols:指定傳輸協議,ASP.NET 可使用這些傳輸協議來解密 HTTP-->

??? <webServices>

????? <protocols>

??????? <add/>

????? </protocols>

??? </webServices>

??? <!--為 Web 應用程序配置緩存設置。cache:定義全局應用程序緩存設置。outputCache :指定應用程序范圍的輸出緩存設置。outputCacheSettings:指定可以應用于應用程序中頁的輸出緩存設置。 sqlCacheDependency:為 ASP.NET 應用程序配置 SQL 緩存依賴項。-->

??? <caching>

????? <cache disableMemoryCollection = "false" disableExpiration = "false" privateBytesLimit = "0" percentagePhysicalMemoryUsedLimit = "90" privateBytesPollTime = "00:02:00"/>

????? <!--設計需要以這種方式緩存的頁時,您需要向該頁添加以下指令:<%@ OutputCache CacheProfile="ServerOnly" %>-->

????? <outputCacheSettings>

??? ????<outputCacheProfiles>

????????? <add name="ServerOnly" duration="60" varyByCustom="browser" location="Server" />

??????? </outputCacheProfiles>

????? </outputCacheSettings>

??? </caching>

???? </system.web>

?</location>

?<!--網絡設置,authenticationModules:指定用于對 Internet 請求進行身份驗證的模塊。connectionManagement:指定與 Internet 宿主的連接的最大數目。defaultProxy:配置超文本傳輸協議 (HTTP) 代理服務器。

?mailSettings:配置簡單郵件傳輸協議 (SMTP) 郵件發送選項。requestCaching:控制網絡請求的緩存機制。settings:配置 System.Net 的基本網絡選項。-->

?<system.net>

?<!--配置SMTP電子郵件設置-->

?<mailSettings>

?? <smtp from="weipeng">

??? <network host="Gao" password="" userName="" />

?? </smtp>

?</mailSettings>

?? <!--禁用所有緩存-->

?? <requestCaching disableAllCaching="true"></requestCaching>

?? <!--指定代理地址,并對本地訪問和 contoso.com 跳過代理。-->

?? <defaultProxy>

???? <proxy usesystemdefault="True" proxyaddress="http://192.168.1.10:3128" bypassonlocal="True"/>

???? <bypasslist>

?????? <add address="[a-z]+".contoso".com" />

???? </bypasslist>

?? </defaultProxy>

?</system.net>

?<!--該 節替換在 httpHandlers 和 httpModules 節中添加的與 AJAX 相關的 HTTP 處理程序和模塊。該節使 IIS 7.0 在集成模式下運行時可使用這些處理程序和模塊。在iis7.0 下運行 ASP.NET AJAX 需要 system.webServer

?節。對早期版本的 IIS 來說則不需要此節。 -->

?<system.webServer>

??? <validation validateIntegratedModeConfiguration="false"/>

??? <modules>

????? <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

??? </modules>

??? <handlers>

????? <remove name="WebServiceHandlerFactory-Integrated"/>

????? <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

????? <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

????? <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

??? </handlers>

?</system.webServer>

?

?<!--ASP.NET AJAX 中配置 ASP.NET 服務-->

?<system.web.extensions>

??? <!--配置 JSON 序列化-->

??? <scripting>

????? <webServices>

??????? <jsonSerialization maxJsonLength="5000"/>

????? </webServices>

??? </scripting>

?</system.web.extensions>

?<!--對WCF的相關配置-->

?<system.serviceModel>

??? <services>

????? <service name="WCFStudent.WCFStudentText" behaviorConfiguration="ServiceBehavior">

??????? <!-- Service Endpoints -->

??????? <endpoint address="" binding="wsHttpBinding" contract="WCFStudent.IStuServiceContract">

????????? <!-- 部署時,應刪除或替換下列標識元素,以反映在其下運行部署服務的標識。刪除之后,WCF 將自動推導相應標識。-->

????????? <identity>

??????????? <dns value="localhost"/>

????????? </identity>

??????? </endpoint>

??????? <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>

????? </service>

??? </services>

??? <behaviors>

????? <serviceBehaviors>

??????? <behavior name="ServiceBehavior">

????????? <!-- 為避免泄漏元數據信息,請在部署前將以下值設置為 false 并刪除上面的元數據終結點?-->

????????? <serviceMetadata httpGetEnabled="true"/>

????????? <!-- 要接收故障異常詳細信息以進行調試,請將以下值設置為 true。在部署前設置為 false 以避免泄漏異常信息-->

????????? <serviceDebug includeExceptionDetailInFaults="false"/>

??????? </behavior>

????? </serviceBehaviors>

??? </behaviors>

?</system.serviceModel>

?

?<!--URL重定向-->

?<rewriter>

??? <rewrite url="~/user/u(.+).aspx" to="~/user/index.aspx?r=$1" />

??? <rewrite url="~/ask/q(.+).aspx" to="~/home/ask/content.aspx?id=$1" />

??? <rewrite url="~/blog/b(.+).aspx" to="~/home/blog/article.aspx?r=$1" />

??? <rewrite url="~/news/n(.+).aspx" to="~/home/news/content.aspx?nid=$1" />

??? <rewrite url="~/default.aspx" to="~/home/ram/net.aspx" />

?</rewriter>

</configuration>

?

其他參考:http://msdn.microsoft.com/zh-cn/dd365946.aspx

轉載于:https://www.cnblogs.com/dudumao/archive/2011/12/01/2270907.html

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/380061.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/380061.shtml
英文地址,請注明出處:http://en.pswp.cn/news/380061.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

離散數學群論_離散數學中的群論及其類型

離散數學群論半群 (Semigroup) An algebraic structure (G, *) is said to be a semigroup. If the binary operation * is associated in G i.e. if (a*b) *c a *(b*c) a,b,c e G. For example, the set of N of all natural number is semigroup with respect to the operat…

IDA使用方法-----1

0x01 啟動IDA new&#xff1a;反匯編一個新文件go&#xff1a;運行&#xff0c;直接進入IDAPrevious&#xff1a;載入一個我們以前編譯過的程序 如果不想每次都看到這個對話框&#xff0c;可以取消該對話框底部的Display at startup&#xff08;啟動時顯示&#xff09;&#x…

郵箱驗證JS代碼

方法一,用JSfunction finish_onclick() { var username document.getElementById("username");var pwhidden document.getElementById("pwhidden");if(username.value"") { alert("請填寫您的企業郵箱地址&#xff01;");username.f…

objdump命令詳解

objdump命令是用查看目標文件或者可執行的目標文件的構成的gcc工具。 選項 --archive-headers -a 顯示檔案庫的成員信息,類似ls -l將lib*.a的信息列出。 -b bfdname --targetbfdname 指定目標碼格式。這不是必須的&#xff0c;objdump能自動識別許多格式&#xff0c;比如…

Java——異常(try...catch...finally)

public class Demo5_Throwable {public static void main(String[] args) {try{System.out.println(1/0);}catch(Exception e){System.out.println(e.getMessage());//獲取異常信息,返回字符串&#xff1b;System.out.println(e.toString());//獲取異常類名和異常信息&#xff…

Python程序反轉給定數字(2種不同方式)

Take input number from the user and print its reverse. 從用戶處獲取輸入號碼并打印其反面。 Example: 例&#xff1a; Input:12345Output:54321Here, we are implementing program to reversing a given number using 2 different ways. 在這里&#xff0c;我們正在實施程…

外匯期貨學習專帖(轉)

一篇好文,值得深思! (轉) 我的一些所看所想,和大家聊聊 ; d: R ^6 c* A2 e X" y8 y4 Bhttp://www.fx998.cn 說來慚愧,很久以前,俺在期貨公司混事,95年以前國內期貨公司從外盤棉花到咖啡....,外匯期指到原油.都能*作.是一派欣欣向榮之景.95年之后,按國家規定都轉了內…

《Pro ASP.NET MVC 3 Framework》學習筆記之四【領域模型介紹】

主題&#xff1a;應用領域驅動開發(Applying Domain-Driven Development) Domain Model是MVC程序的"心臟"&#xff0c;其他的一切&#xff0c;包括Controllers和Views僅僅是用來跟Domain Model交互的一種方式&#xff0c;ASP.NET MVC并沒有限制使用在Domain Model上面…

Java——集合框架(List)

集合框架&#xff08;List的三個子類的特點&#xff09; A&#xff1a;List的三個子類的特點 ArrayList&#xff1a; 底層數據結構是數組&#xff0c;查詢快&#xff0c;增刪慢。 線程不安全&#xff0c;效率高。 Vector&#xff1a; 底層數據結構是數組&#xff0c;查詢…

一步一步學pwntools(適合新手)

序 pwntools是一個二進制利用框架。官方文檔提供了詳細的api規范。然而目前并沒有一個很好的新手教程。因此我用了我過去的幾篇writeup。由于本文只是用來介紹pwntools使用方法&#xff0c;我不會過于詳細的講解各種二進制漏洞攻擊技術。 Pwntools的“Hello World” 棧溢出無…

關于J2EE中死鎖問題的研究(1)

大多數重要的應用程序都涉及高度并發性和多個抽象層。并發性與資源爭用有關&#xff0c;并且是導致死鎖問題增多的因素之一。多個抽象層使隔離并修復死鎖環境的工作變得更加困難。 通常&#xff0c;當同時執行兩個或兩個以上的線程時&#xff0c;如果每個線程都占有一個資源并請…

python變量分配內存_Python | 聲明任何變量而不分配任何值

python變量分配內存Since, Python is a dynamic programming language so there is no need to declare such type of variable, it automatically declares when first time value assign in it. 由于Python是一種動態編程語言&#xff0c;因此無需聲明此類變量&#xff0c;它…

UVA 10004 - Bicoloring

模擬染色&#xff0c;因為只有兩種顏色&#xff0c;所以分別用 0、 1 代表這兩種顏色&#xff0c;然后從0開始深搜&#xff0c;如果 每個點都能染上色&#xff0c;且相鄰兩點的顏色不同&#xff0c;則符合要求。 #include<stdio.h>#include<string.h>#define MAXN …

標志寄存器:CF、PF、AF、ZF、SF、TF、DF、OF

注&#xff1a;下面說到的標志寄存器都是縮寫&#xff0c;C就是CF&#xff0c;其他也一樣 標志寄存器&#xff1a;C、P、A、Z、S、T、D、O的內容只會是0或1&#xff0c;0表示假&#xff0c;1表示真 O&#xff1a;溢出標志 一個寄存器如果存放的值超過所能表示的范圍&#xf…

揭秘:銷售人員26個致命弱點

銷售人員有許多積極的態度需要學習&#xff0c; 同時也有許多不良的習慣應該避免&#xff0c;以免影響個性及專業能力。仔細看看這些缺點&#xff0c;反省你自己&#xff0c;還需要改善的畫&#xff0c;直到你給自己一百分為止。找一位深知你的好 友&#xff0c;讓他誠實地給你…

Java——集合(練習題)

例題1&#xff1a;產生10個1~20之間的隨機數&#xff0c;要求隨機數不能重復 import java.util.HashSet; import java.util.Random; public class Test1 {/*** 產生10個1~20之間的隨機數&#xff0c;要求隨機數不能重復* * 分析&#xff1a;* 1,有Random類創建隨機數對象* 2&a…

模塊化 組件化 工程化_軟件工程中的模塊和軟件組件

模塊化 組件化 工程化The module in software is a small part of the software that is responsible for performing any kind of functionality. Sometimes, the term sub-program is also used to refer to the term module. 軟件中的模塊是軟件的一小部分&#xff0c;負責…

Firefox2狂占CPU解決辦法

https://images.cnblogs.com/cnblogs_com/Tisty/138006/o_firefox3.jpg 看了一下&#xff0c;不知道 "jpeg_free_large" 是干啥的&#xff0c;遂用 "Firefox jpeg_free_large" Google 一下&#xff0c;出來的一堆東西里有帖子說可能和 Apple 的 QuickTime …

PUSHAD和POPAD,以及PUSHA和POPA

PUSHAD PUSHAD也叫保護現場&#xff0c;就是把我們的寄存器壓入棧中 pushad是把eax&#xff0c;ecx&#xff0c;edx&#xff0c;ebx&#xff0c;esp、ebp&#xff0c;esi&#xff0c;edi依次壓入棧中&#xff0c;ESP會減少32&#xff0c;相當于&#xff1a; push eax push ec…

Java——n個數的全排列

例題&#xff1a; 輸入一串字符串&#xff0c;將該字符串中的字符元素進行全排列&#xff0c;然后&#xff0c;一串輸出結果。 例如&#xff1a; 輸入&#xff1a; ABCD 輸出&#xff1a; ABCD ABDC ACBD ACDB ADBC ADCB BACD BADC BCAD BCDA BDAC BDCA CABD CADB CBAD CBDA…