360doc--旭龍的文章 http://www.ahfyzs.com/rssperson/1947337.aspx 360doc (http://www.ahfyzs.com) zh-cn 360doc--個(gè)人圖書館 在WPF中獲取DataGridTemplateColumn模板定義的內(nèi)容控件 http://www.ahfyzs.com/content/13/0703/11/8463843_297317199.shtml 2015/10/1 13:49:20
在WPF中獲取DataGridTemplateColumn模板定義的內(nèi)容控件在WPF中獲取DataGridTemplateColumn模板定義的內(nèi)容控件(轉(zhuǎn)載)DataGridTemplateColumn templeColumn = dataGrid.Columns[index] as DataGridTemplateColumn;Expander expander= templeColumn.
dynamic web module version對(duì)應(yīng)的tomcat版本 http://www.ahfyzs.com/content/15/0607/12/1947337_476279349.shtml 2015/6/7 12:11:17
dynamic web module version對(duì)應(yīng)的tomcat版本新版的tomcat建web項(xiàng)目時(shí)要選這個(gè) 在網(wǎng)上查的:比較拙計(jì),隨便寫一下,明天再深入研究研究。
SpringMVC關(guān)于json、xml自動(dòng)轉(zhuǎn)換的原理研究[附帶源碼分析] – format... http://www.ahfyzs.com/content/14/0817/11/1947337_402547304.shtml 2014/8/17 11:26:28
SpringMVC關(guān)于json、xml自動(dòng)轉(zhuǎn)換的原理研究[附帶源碼分析] – format...前言。message-converters的子節(jié)點(diǎn)配置如下:<mvc:annotation-driven> <mvc:message-converters register-defaults=”true”> <bean class=”org.example.MyHttpMessageConverter”/> <bean class=”org.example.MyOtherHttpMessageConverter”/> </mvc:message-converters></mvc:annotation-driven>很明顯,我們看到了2個(gè)xml和1個(gè)json轉(zhuǎn)換器。
Maven最佳實(shí)踐:版本管理 http://www.ahfyzs.com/content/13/1225/02/1947337_339895956.shtml 2013/12/25 2:39:51
Maven最佳實(shí)踐:版本管理什么是版本管理。但這只是表面,本文我將講述,snapshot和release版本的區(qū)別,如何自動(dòng)化版本發(fā)布(如果你的項(xiàng)目有幾十個(gè)module,你就會(huì)覺得手工改POM來升級(jí)版本是很痛苦的事情),結(jié)合自動(dòng)化發(fā)布的過程,這里還會(huì)介紹maven-release-plugin。所以Maven有SNAPSHOT版本的概念,它與release版本對(duì)應(yīng),后者是指1.0,1.1,2.0這樣穩(wěn)定的發(fā)布版本。解釋了Maven中SNAPSHOT版本的來由,以及Maven管理版本的規(guī)則。
Apache Jakarta Commons 工具集簡介 http://www.ahfyzs.com/content/13/1225/00/1947337_339891597.shtml 2013/12/25 0:52:46
Apache Jakarta Commons 工具集簡介Apache Jakarta Commons 工具集簡介[轉(zhuǎn)] Apache Commons包含了很多開源的工具,用于解決平時(shí)編程經(jīng)常會(huì)遇到的問題,減少重復(fù)勞動(dòng)。apache.org/commons/beanutils/index.html.apache.org/commons/dbcp/apache.org");apache.org/commons/io/apache.org/commons/validator/主要需要引進(jìn)commons-logging.jar、commons-collections.jar、commons- beanutils.jar Digester digester = new Digester();
Maven pom.xml 配置詳解 http://www.ahfyzs.com/content/13/1224/02/1947337_339650880.shtml 2013/12/24 2:55:21
Maven pom.xml 配置詳解。通過xml表示maven項(xiàng)目,使用pom.xml來實(shí)現(xiàn)。maven POM.xml詳解[html] view plaincopyprint?<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd"> <!--父項(xiàng)目的坐標(biāo)。Maven會(huì)比較本地POM和遠(yuǎn)程POM的時(shí)間戳。
Maven構(gòu)建應(yīng)用程序常用配置 | 簡單之美 http://www.ahfyzs.com/content/13/1224/02/1947337_339650510.shtml 2013/12/24 2:36:36
<plugins><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><artifactId>maven-dependency-plugin</artifactId>上面,和pluginManagement并列的plugins元素中配置的是拷貝依賴jar文件到target/lib目錄下面,如果在Eclipse中出現(xiàn)maven-dependency-plugin (goals “copy-dependencies”, “unpack”) is not supported by m2e錯(cuò)誤,上面pluginManagement元素中的配置,可以解決這個(gè)錯(cuò)誤提示。
常用Maven插件介紹 http://www.ahfyzs.com/content/13/1224/02/1947337_339650492.shtml 2013/12/24 2:35:55
第一種方式是將插件目標(biāo)與生命周期階段(lifecycle phase)綁定,這樣用戶在命令行只是輸入生命周期階段而已,例如Maven默認(rèn)將maven-compiler-plugin的compile目標(biāo)與 compile生命周期階段綁定,因此命令mvn compile實(shí)際上是先定位到compile這一生命周期階段,然后再根據(jù)綁定關(guān)系調(diào)用maven-compiler-plugin的compile目標(biāo)。可能是由于歷史的原因,Maven 2/3中用于執(zhí)行測試的插件不是maven-test-plugin,而是maven-surefire-plugin。
常用Maven插件介紹 http://www.ahfyzs.com/content/13/1224/02/1947337_339650486.shtml 2013/12/24 2:35:30
第一種方式是將插件目標(biāo)與生命周期階段(lifecycle phase)綁定,這樣用戶在命令行只是輸入生命周期階段而已,例如Maven默認(rèn)將maven-compiler-plugin的compile目標(biāo)與 compile生命周期階段綁定,因此命令mvn compile實(shí)際上是先定位到compile這一生命周期階段,然后再根據(jù)綁定關(guān)系調(diào)用maven-compiler-plugin的compile目標(biāo)。可能是由于歷史的原因,Maven 2/3中用于執(zhí)行測試的插件不是maven-test-plugin,而是maven-surefire-plugin。
maven 配置篇 之pom.xml http://www.ahfyzs.com/content/13/1224/02/1947337_339650474.shtml 2013/12/24 2:34:59
5 使用ftp配置<distributionManagement><repository><id>proficio-repository</id><name>Proficio Repository</name><url>ftp://ftpserver.yourcompany.com/deploy</url></repository></distributionManagement><build><extensions><extension><groupId>org.apache.maven.wagon</groupId><artifactId>wagon-ftp</artifactId><version>1.0-alpha-6</version></extension></extensions></build>
Eclipse / 命令行 創(chuàng)建多模塊的Maven項(xiàng)目(父模塊,子模塊) http://www.ahfyzs.com/content/13/1224/02/1947337_339650427.shtml 2013/12/24 2:32:43
Eclipse / 命令行 創(chuàng)建多模塊的Maven項(xiàng)目(父模塊,子模塊)由一個(gè)總的模塊,下面包含多個(gè)子模塊(子模塊還可以包含子模塊)。由于默認(rèn)情況下子模塊繼承了總POM的package(pom),這里需要修改子模塊的pom的package類型。在Eclipse中創(chuàng)建父模塊及其子模塊也非常簡單,主要也是通過選擇模塊的路徑來完成。這樣就完成了在Eclipse中創(chuàng)建一個(gè)父模塊ASTController,然后在其下創(chuàng)建另外兩個(gè)子模塊:ASTRestService和web模塊:ASTWeb。
HttpClient 學(xué)習(xí)整理 http://www.ahfyzs.com/content/13/1124/12/1947337_331754867.shtml 2013/11/24 12:21:36
HttpClient;// 指定請(qǐng)求內(nèi)容的類型 post.setRequestHeader("Content-type","text/xml; charset=GBK"); HttpClienthttpclient=newHttpClient(); intresult=httpclient.executeMethod(post); System.out.println("Response status code: "+result); System.out.println("Response body: "); System.out.println(post.getResponseBodyAsString()); post.releaseConnection(); }}
QQ空間獲取信息接口 http://www.ahfyzs.com/content/13/1123/14/1947337_331531459.shtml 2013/11/23 14:05:08
c#實(shí)現(xiàn)QQ群成員列表導(dǎo)出及郵件群發(fā)之模擬QQ登陸 http://www.ahfyzs.com/content/13/1123/02/1947337_331447233.shtml 2013/11/23 2:56:27
dosbox使用和設(shè)置 http://www.ahfyzs.com/content/13/1116/14/1947337_329653711.shtml 2013/11/16 14:39:00
dosbox安裝很簡單.apt-get install dosbox.cd %切換到家目錄 cp /usr/share/doc/dosbox/dosbox.conf.example.gz ./ gunzip dosbox.conf.example.gz mv dosbox.conf.example dosbox.conf.第二種方法是啟動(dòng)dosbox,在dosbox的提示符下輸入:config -writeconf dosbox.conf注意,dosbox啟動(dòng)時(shí)自動(dòng)讀取家目錄下的dosbox.conf,而不是.dosbox.conf,改成其它的名字,dosbox也不會(huì)自動(dòng)讀取。dosbox -conf ~/.dosbox.conf配置聲音設(shè)備。
Struts2.3+Spring3.1+hibernate4.0開發(fā)中遇到的一些問題及其解... http://www.ahfyzs.com/content/13/1102/02/1947337_325989479.shtml 2013/11/2 2:00:54
Struts2.3+Spring3.1+hibernate4.0開發(fā)中遇到的一些問題及其解...注意Hibernate4在開發(fā)當(dāng)中的一些改變。并且設(shè)置hibernate.current_session_context_class">org.springframework.orm.hibernate4.SpringSessionContext(在hibernate3的時(shí)候是thread和jta)。緩存設(shè)置改為net.sf.ehcache.hibernate.EhCacheProvider hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory.
mvn常用命令 http://www.ahfyzs.com/content/13/1015/23/1947337_321747901.shtml 2013/10/15 23:25:14
mvn -version/-v 顯示版本信息 mvn archetype:generate 創(chuàng)建mvn項(xiàng)目 mvn archetype:create -DgroupId=com.oreilly -DartifactId=my-app 創(chuàng)建mvn項(xiàng)目。mvn jetty:run 調(diào)用 Jetty 插件的 Run 目標(biāo)在 Jetty Servlet 容器中啟動(dòng) web 應(yīng)用 mvn compile 編譯你的項(xiàng)目 mvn clean install 刪除再編譯。
“史上最賤游戲”第三波華麗來襲!(Trollface Quest 3) http://www.ahfyzs.com/content/13/1007/13/1947337_319576365.shtml 2013/10/7 13:17:14
所以相信這樣一部犯賤賣萌的游戲應(yīng)該不會(huì)讓你抓狂吧?玩過前兩作(第一次犯賤,第二次犯賤)的同學(xué)應(yīng)該很清楚,這個(gè)游戲沒有華麗的戰(zhàn)斗場景,也沒有復(fù)雜多樣的升級(jí)元素,它最大的賣點(diǎn)在于——坑爹。沒錯(cuò),就算只有四頁這也是劇情,游戲和劇情幾乎一點(diǎn)兒關(guān)系也沒有。其他元素都和前兩作一樣,特點(diǎn)是“要多坑爹有多坑爹”。這個(gè)游戲最適合和基友一起玩,比如一個(gè)宿舍歡聚一堂玩這個(gè)坑爹的游戲,還是蠻可以活躍宿舍氣氛的。
Spring事務(wù)管理中@Transactional的propagation參數(shù) http://www.ahfyzs.com/content/13/1004/01/1947337_318869424.shtml 2013/10/4 1:02:24
在上面這個(gè)例子中,假設(shè)調(diào)用aMethod前不存在任何事務(wù),那么執(zhí)行aMethod時(shí)會(huì)自動(dòng)開啟一個(gè)事務(wù),而由aMethod調(diào)用bMethod時(shí),由于事務(wù)已經(jīng)存在,因此會(huì)使用已經(jīng)存在的事務(wù)(也就是執(zhí)行aMethod之前創(chuàng)建的那個(gè)事務(wù))。NESTED的含義是,在當(dāng)前事務(wù)中創(chuàng)建一個(gè)嵌套事務(wù),如果還沒有事務(wù),那么就簡單地創(chuàng)建一個(gè)新事務(wù)。REQUIRES_NEW的含義是,掛起當(dāng)前事務(wù),創(chuàng)建一個(gè)新事務(wù),如果還沒有事務(wù),就簡單地創(chuàng)建一個(gè)新事務(wù)。
xStream完美轉(zhuǎn)換XML、JSON http://www.ahfyzs.com/content/13/1004/00/1947337_318866826.shtml 2013/10/4 0:27:21
Student stu = (Student) xstream.fromXML(xstream.toXML(bean));Map<String, Student> maps = (Map<String, Student>) xstream.fromXML(xstream.toXML(map));//JettisonMappedXmlDriver 轉(zhuǎn)換的字符串 {"list":{"student":[{"id":1,"name":"haha","email":"email","address":"address","birthday":[{},"2010-11-22"]}]},"student":{"id":2,"name":"tom","email":"tom@125.com","address":"china","birthday":[{},"2010-11-22"]}}