??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲天堂免费在线,中文字幕中文字幕一区二区,图片区小说区国产精品视频http://www.aygfsteel.com/jlins-you/<div id="MySignature" style="display: block;"><p><a title="E序员休?E序员放?E序员笑?E序员段? target="_blank"><img src="http://images.cnitblog.com/blog/437282/201411/041405283617635.gif" width=200px alt=""></a></p> <a >萌萌的IT?lt;/a></div>zh-cnWed, 18 Jun 2025 07:56:54 GMTWed, 18 Jun 2025 07:56:54 GMT60用JAVA代码实现ARPdhttp://www.aygfsteel.com/jlins-you/archive/2012/07/05/382267.htmljlins_youjlins_youThu, 05 Jul 2012 05:20:00 GMThttp://www.aygfsteel.com/jlins-you/archive/2012/07/05/382267.htmlhttp://www.aygfsteel.com/jlins-you/comments/382267.htmlhttp://www.aygfsteel.com/jlins-you/archive/2012/07/05/382267.html#Feedback0http://www.aygfsteel.com/jlins-you/comments/commentRss/382267.htmlhttp://www.aygfsteel.com/jlins-you/services/trackbacks/382267.html一台电脑通过|络讉K另一台电脑的时?在数据链路层需要知道对方的MAC地址q行真正的物理通信.
而电脑上的应用程序通常都是Ҏ另一台电脑的IP地址来和Ҏ建立通信,q时候就需要有一个协议将
IP地址解析到MAC地址,q就是ARP协议.  阅读全文

jlins_you 2012-07-05 13:20 发表评论
]]>
hibernate学习W记(session一U缓?http://www.aygfsteel.com/jlins-you/archive/2012/07/05/382266.htmljlins_youjlins_youThu, 05 Jul 2012 05:19:00 GMThttp://www.aygfsteel.com/jlins-you/archive/2012/07/05/382266.htmlhttp://www.aygfsteel.com/jlins-you/comments/382266.htmlhttp://www.aygfsteel.com/jlins-you/archive/2012/07/05/382266.html#Feedback0http://www.aygfsteel.com/jlins-you/comments/commentRss/382266.htmlhttp://www.aygfsteel.com/jlins-you/services/trackbacks/382266.html2.保证~存中的对象与数据库中的记录保持同步Q当~存中持久化对象的状态发生了变化QSessionq不会立x行相关的SQL语句Q这使得Session能够把几条相关的Sql语句合ƈZ条sql语句Q以便减访问数据库的次敎ͼ从而提高应用程序的性能?nbsp; 阅读全文

jlins_you 2012-07-05 13:19 发表评论
]]>
记我毕业后的今天http://www.aygfsteel.com/jlins-you/archive/2012/07/01/381899.htmljlins_youjlins_youSat, 30 Jun 2012 16:50:00 GMThttp://www.aygfsteel.com/jlins-you/archive/2012/07/01/381899.htmlhttp://www.aygfsteel.com/jlins-you/comments/381899.htmlhttp://www.aygfsteel.com/jlins-you/archive/2012/07/01/381899.html#Feedback2http://www.aygfsteel.com/jlins-you/comments/commentRss/381899.htmlhttp://www.aygfsteel.com/jlins-you/services/trackbacks/381899.html q记得当初在校园的时候,曄q憧憬过毕业之后多么多么好。有个什么什么样的工作,一个月多少多少薪水。怎样怎样花,什么时候买车,什么时候买ѝ依E记得当初的我嘴角q挂着些许微笑Q那是对校园外未知世界的向往。对梦想的追求。现在回惌v来,不禁唏嘘Q社会,您真TM会坑人。当初在校园一赯的傻逼日子,换来了现在苦逼的生活现状。怨谁Q找谁。。?nbsp; 阅读全文

jlins_you 2012-07-01 00:50 发表评论
]]>
记我毕业后的今天http://www.aygfsteel.com/jlins-you/articles/381898.htmljlins_youjlins_youSat, 30 Jun 2012 16:49:00 GMThttp://www.aygfsteel.com/jlins-you/articles/381898.htmlhttp://www.aygfsteel.com/jlins-you/comments/381898.htmlhttp://www.aygfsteel.com/jlins-you/articles/381898.html#Feedback0http://www.aygfsteel.com/jlins-you/comments/commentRss/381898.htmlhttp://www.aygfsteel.com/jlins-you/services/trackbacks/381898.html不知不觉_毕业快一q了?/p>
       q记得当初在校园的时候,曄q憧憬过毕业之后多么多么好。有个什么什么样的工作,一个月多少多少薪水。怎样怎样花,什么时候买车,什么时候买ѝ依E记得当初的我嘴角q挂着些许微笑Q那是对校园外未知世界的向往。对梦想的追求。现在回惌v来,不禁唏嘘Q社会,您真TM会坑人。当初在校园一赯的傻逼日子,换来了现在苦逼的生活现状。怨谁Q找谁。。?/div>
       现在的我Q时怼惌v我的大学生活Q不感叹,旉逝之快,而我也只能用默然来对待这一切,不经意间怺摸嘴角,呵呵Q依然还是挂着些许的微W,只不q在我看来,q微W是苦ӆ的,强颜Ƣ笑。看看周围的ZQ再抬头看看路边的来往车辆。多多少还是会竖v中指忍不住说一句:FUCK。这也许是那传说中的。。M慕嫉妒恨吧?Q奥Q不Q或许只是有恨吧?/div>
       记得前些天发表过的心情:"看着别h都风风光光的 那是因ؓ你没看到他们苦得吃屎都没有热?的时?再想想现在的自己Q还有什么脸面去慕嫉妒恨!Q?/span>"。是的,我不知道现在多少人和我心中抱有同Lx。最L也应该是大多数吧?/div>
       二十三年了,我用青春修行Q却不知未来在哪里?/div>
       我脑袋里有好多想法,只是我还没有准备完全。我始终坚信Z只是留给有准备的人。每每当我把心中所惛_别h分nӞ得到从来不会是我惌的支持,而是得到的几率可怕到几乎为零的打凅R这让我不禁开始怀疑自己。这些想法真的就那么不可实现吗?我想也不是吧。呵?/div>
       一q了Q不知道有多同学和我一h着那点可怜的工资Q过着每月都是月光族甚x向朋友借钱的操蛋日子。每月的房租Q各U开销Q让我仅仅可以维持生命,心里想了无数遍要换工作,都被ơ日早上醒来的我扼杀在摇里Q依旧背着我那个标志上写着四个"D,E,L,L"字母的电脑包奔L在去公司的\上,然后接下来就是一pd把自ph在椅子上的工作,上上|,喝喝Ӟ聊聊天,于是乎这一天又q去了,回家的\上还是会惌v"q样的生zL我想要的吗?是不是应该换工作了呢Q?。就q样一遍一遍而又一ơ一ơ的陷入了无休止的@环当中,我想q也是所有这个年龄段骚年的通病吧。迷茫,无措?/div>
       最l我q是辞职了,依然是挎着我那个标志上写着四个字母的小包,t上了回家的归程?/div>
       现在的日子,倒也悠闲。每天做着八十岁老h都可以搞定的事情Q重复着那些无比烦躁的步骤。我惻Iq个q龄不去旅游Q不去闯荡,不去享受生活Q是一件多么h共愤的事情啊。掏了掏w上的钱包,微微叹了一口气Q垂头气的坐在电脑前开始了无限ơ点d老鼠的操作。悲哉,悲哉?/div>
       人嘛。M能输l生zR每天看着那辆q早要属于我的凯q拉克CTS COUPEQ我又觉得我的生zd满了动力Q没日没夜的敲着键盘Q写着枯燥无比的代码,q竟然沉其中不知时间流逝。苦也。完成一个又一个的目Q看着卡里的钱一点一点的多了h的时候,想着与我那理想中的差距还是有一道除非有奇迹发生不然短期内不可能逾越的`沟的目标时。我惛_了《非诚勿扰》的一句台词:"凯_拉克Q我来了Q你Q在哪?"?/div>
       人生如戏。最后还是忍不住要用一句很伤大雅的话来l尾Q?虽然现在的生z让我无比的蛋疼Q但无论如何揉着蛋也要过下去"。以此。共勉?/div>

jlins_you 2012-07-01 00:49 发表评论
]]>关于扑ַ?/title><link>http://www.aygfsteel.com/jlins-you/archive/2012/06/29/381746.html</link><dc:creator>jlins_you</dc:creator><author>jlins_you</author><pubDate>Thu, 28 Jun 2012 16:10:00 GMT</pubDate><guid>http://www.aygfsteel.com/jlins-you/archive/2012/06/29/381746.html</guid><wfw:comment>http://www.aygfsteel.com/jlins-you/comments/381746.html</wfw:comment><comments>http://www.aygfsteel.com/jlins-you/archive/2012/06/29/381746.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/jlins-you/comments/commentRss/381746.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/jlins-you/services/trackbacks/381746.html</trackback:ping><description><![CDATA[<span style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; text-align: left; background-color: #ffffff; "> 本hd毕业Q毕业时Q一不小心,落入了华Zh力外包,作ؓ一个刚刚毕业的学生Q对工作充满期待Q但是进入公怹后,发现理想和差距太大了Q首先是错误的进入了人力外包q种恶心的公司,在别人公司呆着Q总觉得低Z{,而且核心技术也不会让你做,只是一味的你当做一个劳动力Q在公司效益不好的时候,随时都还有把你辞掉的可能Q当Ӟq种是能力确实不行的人才会遇到的Q。所以最q想xQ结果发玎ͼ一q工作经验很多都看不P要的都是外包公司Q已l在外包公司待过的我实不咋惛_d包公怺Q有时候我有点想不懂,N工作2q的׃定比工作一q的好?Q工作年限大一定比工作q限短的牛|Q? </span><br style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; text-align: left; background-color: #ffffff; " /><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; text-align: left; background-color: #ffffff; ">    不过不管怎么_既然选择了ITq行Q不论外面怎样Q首先得不断充实自己Q只有自己有_的资本的时候才能出d板,q一行、爱一行! </span><br style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; text-align: left; background-color: #ffffff; " /><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; text-align: left; background-color: #ffffff; ">    珍爱生命Q远d包!</span> <img src ="http://www.aygfsteel.com/jlins-you/aggbug/381746.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/jlins-you/" target="_blank">jlins_you</a> 2012-06-29 00:10 <a href="http://www.aygfsteel.com/jlins-you/archive/2012/06/29/381746.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title> 工作压力的问?/title><link>http://www.aygfsteel.com/jlins-you/archive/2012/06/29/381744.html</link><dc:creator>jlins_you</dc:creator><author>jlins_you</author><pubDate>Thu, 28 Jun 2012 16:08:00 GMT</pubDate><guid>http://www.aygfsteel.com/jlins-you/archive/2012/06/29/381744.html</guid><wfw:comment>http://www.aygfsteel.com/jlins-you/comments/381744.html</wfw:comment><comments>http://www.aygfsteel.com/jlins-you/archive/2012/06/29/381744.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/jlins-you/comments/commentRss/381744.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/jlins-you/services/trackbacks/381744.html</trackback:ping><description><![CDATA[     摘要: 对个人的影响 <br> <br>有h说紧点好Q理由是可以从中学到东西Q这是一U压力驱动式的学习方式;也有杄好,可以有大把的旉去闲逛、打酱a。前一Uh臛_是上q的、积极的Q只是兴许是׃教育体制和Y件大环境的原因,已经失去了许多主动性,非得要环境D的压力下才能d习、去分析和解决问题?<br> <br>其实Q大部分刚毕业的E序员都属于前一U,他们臛_是努力着L升自己,设法d出好的代码,有一U追求卓的愿望。但是,我们从来的教育都是这P喂食——吃食,喂食——吃食……到了大学,喂食的情况少了,于是颓废、堕落的人就多了Q素质教育和体验教育没有跟上节拍Q真正要实施的时候发玎ͼ学生基础、自我管理和U束能力与领导的理念太不兼容Q于是实施只能停留在概念上?nbsp; <a href='http://www.aygfsteel.com/jlins-you/archive/2012/06/29/381744.html'>阅读全文</a><img src ="http://www.aygfsteel.com/jlins-you/aggbug/381744.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/jlins-you/" target="_blank">jlins_you</a> 2012-06-29 00:08 <a href="http://www.aygfsteel.com/jlins-you/archive/2012/06/29/381744.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Quartz中的Job和StatefulJobhttp://www.aygfsteel.com/jlins-you/archive/2012/06/29/381745.htmljlins_youjlins_youThu, 28 Jun 2012 16:08:00 GMThttp://www.aygfsteel.com/jlins-you/archive/2012/06/29/381745.htmlhttp://www.aygfsteel.com/jlins-you/comments/381745.htmlhttp://www.aygfsteel.com/jlins-you/archive/2012/06/29/381745.html#Feedback1http://www.aygfsteel.com/jlins-you/comments/commentRss/381745.htmlhttp://www.aygfsteel.com/jlins-you/services/trackbacks/381745.html在定时Q务Quartz中如果要创徏一个JobQ可以实现Job或者StatefulJobQ那Job和StatefulJob的区别是什么呢Q? 
JobQ普通的dQ或者说无状态的dQ在JobDetail执行之后Q不会记录状?nbsp;
StatefulJobQ承自JobQ由于在定义时添加了@PersistJobDataAfterExecution注释Q所以是有状态的dQ在Schedule执行完triger之后Q会实C该接口的d状态记录到数据库中Q所以要是有状态的定时d 

jlins_you 2012-06-29 00:08 发表评论
]]>
使用CSS—教你轻村֭习网站界面制作(2Q?/title><link>http://www.aygfsteel.com/jlins-you/archive/2012/06/24/381388.html</link><dc:creator>jlins_you</dc:creator><author>jlins_you</author><pubDate>Sun, 24 Jun 2012 15:29:00 GMT</pubDate><guid>http://www.aygfsteel.com/jlins-you/archive/2012/06/24/381388.html</guid><wfw:comment>http://www.aygfsteel.com/jlins-you/comments/381388.html</wfw:comment><comments>http://www.aygfsteel.com/jlins-you/archive/2012/06/24/381388.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/jlins-you/comments/commentRss/381388.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/jlins-you/services/trackbacks/381388.html</trackback:ping><description><![CDATA[<p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "><strong><span style="color: #ff0000; ">ID选择器:</span></strong></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">id一般来说都是唯一的,我们来看一下操作:</p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "></p><div bg_html"="" style="background-color: #ffffff; width: 687px; color: #333333; line-height: 26px; text-align: left; "><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; "><</span><span style="color: #800000; ">body</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />   </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">id</span><span style="color: #0000FF; ">="special"</span><span style="color: #FF0000; ">  class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">栏目一</span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />    </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">栏目?/span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />    </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">栏目?/span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br /></span><span style="color: #0000FF; "></</span><span style="color: #800000; ">body</span><span style="color: #0000FF; ">></span></div></div><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">然后我们在样式文件中Q我们这P</p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "></p><div bg_html"="" style="background-color: #ffffff; width: 687px; color: #333333; line-height: 26px; text-align: left; "><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">#special<br />{<br />     font-weight :bold ; /* _体 */<br />        }<br /></span></div></div><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">我们得到了两U效果的混合了。看看效果:</p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "><img src="http://img.my.csdn.net/uploads/201206/23/1340455012_7038.jpg" alt="" style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; " /></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">然而,当id选择器和c选择器的样式起冲H的时候,p涉及C一个优先的问题了Q在q里我就直接把优先说一下,ID选择?gt;c选择器?/p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "><strong><span style="color: #ff0000; ">HTML标签选择?/span></strong>Q?/p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">讄的是一个更大范围的Q只要是q个标签里边的,׃应用q个样式Q那么我们这D代码里边,有一个bodyQ我们在样式中的body里边写入一个颜色|</p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "></p><div bg_html"="" style="background-color: #ffffff; width: 687px; color: #333333; line-height: 26px; text-align: left; "><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">body <br />{<br />    color :#f0f;<br />}<br /></span></div></div><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">那么我们的HTMLPage里边的body中的Q?/p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "></p><div bg_html"="" style="background-color: #ffffff; width: 687px; color: #333333; line-height: 26px; text-align: left; "><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; "><</span><span style="color: #800000; ">body</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />   </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">id</span><span style="color: #0000FF; ">="special"</span><span style="color: #FF0000; ">  class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">栏目一</span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />    </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">栏目?/span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />    </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">栏目?/span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />    123456<br /></span><span style="color: #0000FF; "></</span><span style="color: #800000; ">body</span><span style="color: #0000FF; ">></span></div></div><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">那么q个123456׃变色。效果:</p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "><img src="http://img.my.csdn.net/uploads/201206/23/1340458274_2523.jpg" alt="" style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; " /></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">我们也很Ҏ的看的出来,栏目一 栏目?栏目?没有变色Q这是ؓ什么呢Q很明显Q这涉及C一个优先的问题了QID优先U?gt;c选择?gt;HTML标签选择器?/p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">再说一个内容,是一个父子关pȝQ我们在HTMLPage里边q样?</p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "></p><div bg_html"="" style="background-color: #ffffff; width: 687px; color: #333333; line-height: 26px; text-align: left; "><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; "><</span><span style="color: #800000; ">body</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />   </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">id</span><span style="color: #0000FF; ">="special"</span><span style="color: #FF0000; ">  class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">栏目一</span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />    </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">栏目?/span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />    </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">栏目?/span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />    123456<br /></span><span style="color: #0000FF; "></</span><span style="color: #800000; ">body</span><span style="color: #0000FF; ">></span></div></div><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">然后我们在样式文件中q样Q?/p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "></p><div bg_html"="" style="background-color: #ffffff; width: 687px; color: #333333; line-height: 26px; text-align: left; "><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">.title span<br />{<br />      color:#000;<br />      font-size :12px;  /* 字体大小  */<br />       <br />    }</span></div></div><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">记得title与span之间的空|然后q个效果是Q?/p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "><img src="http://img.my.csdn.net/uploads/201206/23/1340459104_7096.jpg" alt="" style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; " /></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">我们p看的出来Q这?#8220;一”是明昄变了?/p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">q有一个内容,q列的写法:我们在样式中q样写:</p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "></p><div bg_html"="" style="background-color: #ffffff; width: 687px; color: #333333; line-height: 26px; text-align: left; "><div><div><strong>[html]</strong> <a title="view plain" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_plain.gif); border-width: initial; border-color: initial; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat; ">view plain</a><a title="copy" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_copy.gif); border-width: initial; border-color: initial; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat; ">copy</a><div style="position: absolute; left: 563px; top: 3902px; width: 18px; height: 18px; z-index: 99; border-image: initial; "><embed id="ZeroClipboardMovie_11" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="18" height="18" name="ZeroClipboardMovie_11" align="center" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=11&width=18&height=18" wmode="transparent"></div></div></div><ol start="1" style="border-width: initial; border-color: initial; "><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; "><span style="border-width: initial; border-color: initial; ">.menu, .title  </span></span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">{  </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">    background-color :#ee00ff;   </span></li><li style="border-width: initial; border-color: initial; line-height: 18px; "><span style="border-width: initial; border-color: initial; ">    }  </span></li></ol></div><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">menu和title之间我们用逗号隔开Q就能达到目的,我们看看效果Q?/p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "><img src="http://img.my.csdn.net/uploads/201206/23/1340459612_7779.jpg" alt="" style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; " /></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">我们接下来讲最后一个内容,是classq个cL可以讄为多个的Q那么我们看一下是什么个情况Q我们在HTMLPage里边写:</p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "></p><div bg_html"="" style="background-color: #ffffff; width: 687px; color: #333333; line-height: 26px; text-align: left; "><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; "><</span><span style="color: #800000; ">body</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />   </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">id</span><span style="color: #0000FF; ">="special"</span><span style="color: #FF0000; ">  class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">栏目一</span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />    </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">class</span><span style="color: #0000FF; ">="menu niu"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">栏目?/span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />    </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">栏目?/span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />    </span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">class</span><span style="color: #0000FF; ">="title"</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">q是</span><span style="color: #0000FF; "><</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">一</span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; ">条新L?/span><span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br />    123456<br /></span><span style="color: #0000FF; "></</span><span style="color: #800000; ">body</span><span style="color: #0000FF; ">></span></div></div><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">然后我们在样式里边这么写Q?/p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "></p><div bg_html"="" style="background-color: #ffffff; width: 687px; color: #333333; line-height: 26px; text-align: left; "><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">.niu <br />{<br />     text-decoration :underline;<br />     color :#eeeedd;<br />    }  <br />    <br />.menu{  /* 栏目样式*/<br />    color:#f00; /*  文字颜色 */<br />}<br /></span></div></div><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">我们p看到栏目?/p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "><img src="http://img.my.csdn.net/uploads/201206/24/1340467326_2199.jpg" alt="" style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; " /><br /></p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">已经与niu一P加了下划U了Q这出C一个问题,q个时候的颜色应该是menu的还是niu的呢Q我们一看就知道是menu的,q与CSS的样式排列前后顺序有兟뀂与后面的对应v来?/p><img src ="http://www.aygfsteel.com/jlins-you/aggbug/381388.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/jlins-you/" target="_blank">jlins_you</a> 2012-06-24 23:29 <a href="http://www.aygfsteel.com/jlins-you/archive/2012/06/24/381388.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用CSS—教你轻村֭习网站界面制作(1Q?/title><link>http://www.aygfsteel.com/jlins-you/archive/2012/06/24/381387.html</link><dc:creator>jlins_you</dc:creator><author>jlins_you</author><pubDate>Sun, 24 Jun 2012 15:24:00 GMT</pubDate><guid>http://www.aygfsteel.com/jlins-you/archive/2012/06/24/381387.html</guid><wfw:comment>http://www.aygfsteel.com/jlins-you/comments/381387.html</wfw:comment><comments>http://www.aygfsteel.com/jlins-you/archive/2012/06/24/381387.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/jlins-you/comments/commentRss/381387.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/jlins-you/services/trackbacks/381387.html</trackback:ping><description><![CDATA[<p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">q些天ؓ了做一个网站,所以顺便学习了一下CSSQ不能算是很专业的学习CSSQ主要是Z更好的完善这些个界面而学习,写这博客是Z让大家和我一h学习做网站,体会做网站的乐趣Q达到轻村֭习的目的?/p> <p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">CSS特点Q实C个网内容与样式的分R这是CSS非常有优势的一个特点,省去了我们很多的ȝ。我们来做一个简单的例子来看一下这个效果:<br /> <span style="background-color: #eeeeee; font-size: 13px; "><!</span><span style="background-color: #eeeeee; font-size: 13px; ">DOCTYPE html PUBLIC </span><span style="background-color: #eeeeee; font-size: 13px; ">"</span><span style="background-color: #eeeeee; font-size: 13px; ">-//W3C//DTD XHTML 1.0 Transitional//EN</span><span style="background-color: #eeeeee; font-size: 13px; ">"</span><span style="background-color: #eeeeee; font-size: 13px; "> </span><span style="background-color: #eeeeee; font-size: 13px; ">"</span><span style="background-color: #eeeeee; font-size: 13px; ">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</span><span style="background-color: #eeeeee; font-size: 13px; ">"</span><span style="background-color: #eeeeee; font-size: 13px; ">></span></p> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br />     创徏人:陈宗?br /> --><br /> <html xmlns="http://www.w3.org/1999/xhtml"><br /> <head><br />     <title>CSS试</title><br /> </head><br /> <body><br />     <font color=“#0000ff”>栏目一</font><br />     <font color=“#0000ff”>栏目?lt;/font><br />     <font color=“#0000ff”>栏目?lt;/font><br /> </body><br /> </html></div><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">没有CSS之前Q我们是q样要是把这个颜色改为别的颜Ԍ那么只能一个个颜色值的改,q个工作量很恐怖的?/p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">之后我们使用CSS来进行优化,我们先来使用CSS选择器:</p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; "><span style="color: #ff0000; "><strong>c选择?/strong></span>Q这是我们在HTML中查扄所讄的一个倹{?/p><p style="color: #333333; text-align: left; background-color: #ffffff; line-height: 24pt; text-indent: 28pt; font-family: arial; font-size: 13pt; ">我们使用span标签+cL志,我们把body里边的内Ҏ成这P</p><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; "><</span><span style="color: #800000; ">body</span><span style="color: #0000FF; ">></span><br />    <span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span>栏目一<span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><br />    <span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span>栏目?span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><br />    <span style="color: #0000FF; "><</span><span style="color: #800000; ">span </span><span style="color: #FF0000; ">class</span><span style="color: #0000FF; ">="menu"</span><span style="color: #0000FF; ">></span>栏目?span style="color: #0000FF; "></</span><span style="color: #800000; ">span</span><span style="color: #0000FF; ">></span><br /><span style="color: #0000FF; "></</span><span style="color: #800000; ">body</span><span style="color: #0000FF; ">></span></div><br /><span style="color: #333333; font-family: arial; font-size: 17px; line-height: 32px; text-align: left; text-indent: 37px; background-color: #ffffff; ">然后我们来创建我们的样式文gQ?/span> <br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->.menu{  /* 栏目样式*/<br />    color:#f00; /*  文字颜色 */<br />}</div><br /><span style="color: #333333; font-family: arial; font-size: 17px; line-height: 32px; text-align: left; text-indent: 37px; background-color: #ffffff; ">p么一句话我们搞定了之前的颜色设|,x颜色只要打开q个样式文gQ然后进行更改就行了。避免了很多的麻烦,然后我们再进行样式文件与q个内容的关联,很简单,我们只要拉进来就ok了,拉到q个地方Q?/span> <br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; "><</span><span style="color: #800000; ">head</span><span style="color: #0000FF; ">></span><br />    <span style="color: #0000FF; "><</span><span style="color: #800000; ">title</span><span style="color: #0000FF; ">></span>CSS试文g<span style="color: #0000FF; "></</span><span style="color: #800000; ">title</span><span style="color: #0000FF; ">></span><br />    <span style="color: #0000FF; "><</span><span style="color: #800000; ">link </span><span style="color: #FF0000; ">href</span><span style="color: #0000FF; ">="css/StyleSheet1.css"</span><span style="color: #FF0000; "> rel</span><span style="color: #0000FF; ">="stylesheet"</span><span style="color: #FF0000; "> type</span><span style="color: #0000FF; ">="text/css"</span><span style="color: #FF0000; "> </span><span style="color: #0000FF; ">/></span><br /><span style="color: #0000FF; "></</span><span style="color: #800000; ">head</span><span style="color: #0000FF; ">></span></div><br /><span style="color: #333333; font-family: arial; font-size: 17px; line-height: 32px; text-align: left; text-indent: 37px; background-color: #ffffff; ">q就产生了一个关联。样式里边就一个属性,一个冒P一个属性值构成的。当我们不知道有什么属性值的时候,我们按一下空|VS׃|列出所有的属性|q样我们p选择我们需要的属性g?/span> <br /><br /><br /><br /><br /><br /><img src ="http://www.aygfsteel.com/jlins-you/aggbug/381387.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/jlins-you/" target="_blank">jlins_you</a> 2012-06-24 23:24 <a href="http://www.aygfsteel.com/jlins-you/archive/2012/06/24/381387.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>servlet知识回顾http://www.aygfsteel.com/jlins-you/archive/2012/06/24/381386.htmljlins_youjlins_youSun, 24 Jun 2012 15:13:00 GMThttp://www.aygfsteel.com/jlins-you/archive/2012/06/24/381386.htmlhttp://www.aygfsteel.com/jlins-you/comments/381386.htmlhttp://www.aygfsteel.com/jlins-you/archive/2012/06/24/381386.html#Feedback0http://www.aygfsteel.com/jlins-you/comments/commentRss/381386.htmlhttp://www.aygfsteel.com/jlins-you/services/trackbacks/381386.html最q在开发一个项目,用到了servlet底层的原理,又重新复习下Q在q里和大家共享下Q希望对大家有所帮助。主要介l了下,servlet的体pȝ构、生命周期、servlet的实例,servleth以及servlet的销毁?/span>

1. servlet体系l构
servelt我们可以理解Z个实C可以接受hq响应请求的javacRservletcȝ体系l构如下?nbsp;
 

 

GenericServlet抽象c?----实现了Servlet接口和ServletConfig接口和Serializable接口

HttpServlet抽象cȝ-----承于GenericServlet抽象c?/p>

2.servlet生命周期

init()Ҏ和destory()Ҏ都只调用一ơ,service()Ҏ每接受一个请求,都会调用一ơservice()Ҏ?/p>

 

2.1 Servlet容器实例化某个Servlet对象

在web.xml里面可以配置一个标{,让某个servletcdServlet容器启动的时候就创徏q个servlet cȝ一个对象。如果不配置servlet容器启动创徏servlet对象Q则当某个servlet接收到客L的请求时Q才创徏q个servlet对象

 

2.2 某个Servlet对象初始?/h2>

Servlet实例化后Q会调用servlet的init()ҎQ这个方法就是用来初始化的。你可以重写q个ҎQ根据自q需求去初始化这个servlet实例?/p>

如果你在web.xml个Servlet实例配置了初始化参数Q如?/p>

  <servlet>

    <servlet-name>LoginDispatcher</servlet-name>   

    <servlet-class>requestdispatcher.LoginDispatcher</servlet-class>   

<init-param>   

<param-name>name</param-name>   

<param-value>zhangsan</param-value>   

</init-param>

  </servlet>

你可以调用ServletConfig接口的getInitParameter()Ҏ去获得这些初始化参数。由上面cd我们可以知道GenericServlet抽象cdCServletConfig接口?/p>

q里有两个异常要介绍Q?/p>

ServletException:一般用来指明某个servlet初始化失败,例如找不到初始化参数

UnavailbleException:用于通知servlet容器该servlet实例不可用,例如当这个servlet在初始化的时候调用数据库q接p|Q那么这个Servlet׃可用了,于是必须通知Servlet容器Q告诉它q个Servlet对象不可?/p>

 

2.3 Servlet处理h

当客L发送请求给某个servlet的时候,servlet会调用该servlet的service()Ҏd理请求。在处理h期间发生错误会抛出ServletException和UnavialbleException?/p>

当UnavialbleException标志该servlet为永久不可用的servletӞservlet容器׃调用该servlet的destory()Ҏ销毁该servletQƈq回l客LHTTP404错误Q请求的资源不可用或不存在)?/p>

当UnavialbleException标志该servlet为暂时不可用的servletӞservlet容器返回给客户端HTTP503错误Q服务器忙,不能处理hQ?/p>

 

2.4 Servlet的销?/h2>

当servlet容器要销毁某个servlet之前Qservlet容器会调用该servlet的destory()ҎQ去释放一些资源,例如Q数据库q接{等

 

3. servlet生命周期时序?/h1>



jlins_you 2012-06-24 23:13 发表评论
]]> վ֩ģ壺 ҽ| | | | | ׳| ־| | | | Ǩ| ɽ| º| Ž| | ˮ| ̩| | | | ѳ| | | ˳| | | ϴ| ³ľ| Ǹ| γ| Դ| ͭɽ| Ͻ| | ǭ| «| ϲ| | ߰| | |