Time of Update: 2018-12-05
includelib kernel32.lib includelib user32.lib includelib Irvine32.lib .386.model flat,stdcall.stack 4096ExitProcess PROTO, dwExitCode:DWORD DumpRegs PROTO.datafirst DWORD 1;初始化第一個數為1twoDWORD 1;初始化第二個數為1dest DWORD 12 dup (0);輸出前12個斐波那契數.codemain
Time of Update: 2018-12-05
1.Maven3預設的專案檔位置:app/ pom.xml: 放在項目的根目錄下 src/main/java: 放主代碼 arc/test/java:放測試代碼2.使用命令來構建項目的骨架:mvn archetype:generate(maven2則最好就用):mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-5:generate3.座標的理解:<groupId>:
Time of Update: 2018-12-05
思路:1.在struts.xml中配置好預設的語言:<constant name="sturts.locale" value="zh_CN" />2.在jsp頁面中,設定一些連結(<a></a>),這些連結是Action類,然後通過這些連結,在Action中設定好相應的參數, 並將它儲存在application對象中。3.在跳轉後的jsp頁面中,通過擷取application對象的相應的屬性的值,以後在相應的表單中通過設定隱藏屬性<input type=
Time of Update: 2018-12-05
program yang;#include ( "stdlib.hhf" )static i: int32; @nostorage; int32 0, 2, 4, 6;var index: int32; tmp: int32;begin yang; mov(&i, eax); mov(0, esi); for ( mov(0, index); index<4; add(1, index) ) do
Time of Update: 2018-12-05
1.用標籤來讀取JSP中變數的問題:<% int i = 1;%> <s:property value="#i" /> //這樣子是讀取不到i變數的。可以這樣子讀取:<% int i = 1; request.setAttribte("i", i);%><s:property value="#request.i" />2.為action傳遞參數:<s:form
Time of Update: 2018-12-05
(Preface: I'm a newbie, and my English is just so so, if there are some mistakes, please point out , and I will correct. ) I think that all the best or the newest docs of the Computer Science are written by English, so if we want to read about
Time of Update: 2018-12-05
1.定義一個AOP:package org.yang.aop;import java.io.IOException;import javax.servlet.http.HttpServletResponse;import org.aspectj.lang.annotation.AfterReturning;import org.aspectj.lang.annotation.Aspect;@Aspectpublic class
Time of Update: 2018-12-05
program yang;#include ( "stdlib.hhf" )static Astring: string := "yangzhiyong";begin yang; mov(Astring, eax); mov(0, dl); mov( (type str.strRec [eax]).length, ecx); for ( mov(0, esi); esi<ecx; inc(esi) ) do mov(
Time of Update: 2018-12-05
JPA與Hibernate的關係1.JPAJPA全稱: Java Persistence APIJPA通過JDK 5.0註解或XML描述對象-關係表的映射關係,並將運行期的實體物件持久化到資料庫中。JPA的出現?JPA的出現有兩個原因:其一,簡化現有Java EE和Java SE應用的對象持久化的開發工作;其二,Sun希望整合對ORM技術,實現持久化領域的統一。JPA由EJB 3.0軟體專家組開發,作為JSR-220實現的一部分。但它不依賴於EJB
Time of Update: 2018-12-05
1.Team.javapackage org.yang.hibernate;import java.util.HashMap;import java.util.Map;public class Team { private String id; private String teamName; private Map<String, Student> students = new HashMap<String, Student>();
Time of Update: 2018-12-05
發送訊息不管是將訊息發送到隊列還是發布到主題,編程的步驟是相同的,差別在於使用不同的JMS對象。具體定義見表:發送訊息的過程大體分為以下幾步;1、獲得一個Weblogic
Time of Update: 2018-12-05
program strDemo;#include ("stdlib.hhf");static string1: string; string2: string;begin strDemo; str.alloc( @size(char) * 16 ); mov(eax, string1); stdout.put("Enter String1: "); stdin.readLn(); stdin.gets( string1 );
Time of Update: 2018-12-05
1.使用XML或Java代碼方式構建SqlSessionFactory2.從SqlSessionFactory中擷取SqlSession XXXMapper mapper = session.getMapper(XXXMapper.class); mapper.method()來操作資料庫3.映射SQL語句: <mapper namespace="你的類的限定名:包名.類名"> <語句 id="引用的名稱" 其他屬性>
Time of Update: 2018-12-05
<build><finalName>yangzhiyong</finalName><plugins><plugin><groupId>org.codehaus.cargo</groupId><artifactId>cargo-maven2-plugin</artifactId><version>1.3.2</version><configuration>
Time of Update: 2018-12-05
step 1 : Go http://struts.apache.org/2.x/, and download thestruts-2.2.3.1-all.zip . Then extract the file, you can find the lib directory.step 2: Config the Environment var, CLASSPATH, add the path to the struts2's lib
Time of Update: 2018-12-05
assume cs:codesgdatasg segmentformat db 'yy/MM/dd HH:mm:ss','$'yMdHmsdb 9, 8, 7, 4, 2, 0datasg endscodesg segmentstart:mov ax, datasgmov ds, axmov si, offset formatmov di, offset yMdHmsmov cx, 6deal:push cxmov al, [di];指定要訪問的記憶體位址,處理年份out 70H, alin
Time of Update: 2018-12-05
1. 在HLA中(不是官方說的,而是自己探討的,不知道正不正確^_^),數組的地址是資料的第一個位元組的地址。2。如果數組的單位是位元組,則首地址也是第一個資料的地址。即首地址的內容與第一個資料的內容是相同的。4。否則數組的首地址不是第一個資料的首地址,但是有規律的:第一個資料的地址=數組的首地址+(@size(聲明數組時的資料類型));:聲明為byte(位元組)的數組的記憶體位址圖:是聲明uns32(無符號32位整數)的數組的記憶體位址圖:
Time of Update: 2018-12-05
1.驅動源碼:#include <linux/init.h>#include <linux/module.h>MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){ printk(KERN_ALERT "Hello, world\n"); return 0;}static void hello_exit(void){ printk(KERN_ALERT
Time of Update: 2018-12-05
//目錄類://Category檔案:package yang.www.hibernate;import java.util.Set;public class Category{ //主鍵標識符,也是OID private Long id; private String name; //父目錄 private Category parentCategory; //子目錄 private Set<Category>
Time of Update: 2018-12-05
# /etc/fstab: static file system information.## Use 'blkid -o value -s UUID' to print the universally unique identifier# for a device; this may be used with UUID= as a more robust way to name# devices that works even if disks are added and removed.