Time of Update: 2018-12-03
今天公司的網路被入侵了,貌似侵入者是韓國的..(網域名稱看出來的),入侵者冒充了區域網路裡的一個IP.然後串改了網關,搞的我們每次請求服務期的時候,都先把請求發到入侵者電腦了,也就是被攔截拉...-
Time of Update: 2018-12-03
表3-1 用於處理XML文檔的DOM元素屬性屬性名稱描述childNodes返回當前元素所有子項目的數組firstChild返回當前元素的第一個下級子項目lastChild返回當前元素的最後一個子項目nextSibling返回緊跟在當前元素後面的元素nodeValue指定表示元素值的讀/寫屬性parentNode返回元素的父節點previousSibling返回緊鄰當前元素之前的元素表3-2 用於遍曆XML文檔的DOM元素方法方法名描述getElementById(id) (document)
Time of Update: 2018-12-03
當調用IUnityContainer.Dispose()方法的時候,它會釋放所有子容器(也就是採用CreateChildContainer建立出來的容器)和註冊為ContainerControlledLifetimeManager的單例對象。下面這個例子能說明問題:IUnityContainer moduleContainer=new UnityContainer ();IUnityContainer
Time of Update: 2018-12-03
1. touch filename 修改檔案的最後更新時間,如果檔案不存在的話則會建立檔案2. echo "hello" > filename 往filename裡寫入hello,如果filename 裡原來有內容將會被覆蓋3. 用 ">"往檔案裡寫內容(覆蓋原始內容),用"<"從檔案裡讀出內容寫入到標準輸入資料流中ls > filelist,把目前的目錄下的檔案名稱都寫入到filelist這個檔案中去。sort <
Time of Update: 2018-12-03
*SAP做JOIN操作的方式,一種是se11建視圖(view),在視圖中將兩個表JOIN起來,另一種是OPEN SQL方式,直接JOIN兩個表*OPEN SQL 和T-SQL在寫法上要注意幾點,*一:OPEN SQL表欄位用‘~’表示,T-SQL表欄位用‘.’表示*二:OPEN SQL取多個欄位用空格分隔,T-SQL取多個欄位用逗號分隔。*ZHYUSERVIEW為視圖*TABLES:ZHYUSERVIEW.*SELECT * FROM ZHYUSERVIEW.* WRITE: / ZHYUSE
Time of Update: 2018-12-03
package Beans;import java.util.Map;import java.util.HashMap;import javax.naming.Context;import javax.naming.InitialContext;import javax.naming.NamingException;import javax.sql.DataSource;public class ServiceLocator{ private javax.naming.Context
Time of Update: 2018-12-03
<Window x:Class="HierarchicalDataTemplate.Window3" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window3" Height="300" Width="300">
Time of Update: 2018-12-03
最近剛裝了一個VS2008,研究研究silverlight(以下簡稱SL)和wcf,發現調用我以前發布的一個wcf一直不成功,返回錯誤資訊http://localhost/mywcfservice/Service2.svc不允許跨域訪問.我的SL訪問路徑是http://localhost:8457/SilverlightApplication3.Web/SilverlightApplication3TestPage.aspx#/Home,wcf的域是http://localhost,IIS的連接
Time of Update: 2018-12-03
StoredProcedure是一個抽象類別,必須寫一個子類來繼承它,這個類是用來簡化JDBCTemplate執行預存程序操作的。首先我們寫一個實作類別:package com.huaye.framework.dao;import java.sql.Types;import java.util.HashMap;import java.util.Map;import org.springframework.jdbc.core.RowMapper;import
Time of Update: 2018-12-03
具體用法如下: public static class ClassHelper { //用this 聲明將要吧這個方法附加到Student對象 public static bool CheckName(this Student stu) { if (stu.Name == "小明") { return true; }
Time of Update: 2018-12-03
<forward name="error" path="/form/login_error.jsp" redirect="true" /> <forward name="success" path="/form/success.jsp" /> public ActionForward execute(ActionMapping mapping, ActionForm form,HttpServletRequest
Time of Update: 2018-12-03
今天在做一個SL聊天室程式,在ComboBox綁定線上使用者列表的時候死活都綁定不上,調試也探索服務端已經把線上使用者列表返回給用戶端了,然後把combobox的itemssource設定為這個泛型列表List<ChatUser> 時,始終綁定不上ComboBox,然後翻看以前的一些例子,對比一下看看為什麼以前的例子能綁定,而這個不能綁定,終於發現了不同之處,我的ChatUser類以前是這樣寫的:public class ChatUser { public
Time of Update: 2018-12-03
Action中的execute寫如下代碼:request.setAttribute("attr1", null);request.setAttribute("attr2", "");request.setAttribute("attr3", new ArrayList());request.setAttribute("attr4", new UserInfo()); 測試 logic:empty,notEmpty 以及 logic:present,notPresent-------------
Time of Update: 2018-12-03
今天和同學聊到類的作用,突然間恍然大悟,以前用類都是在類裡面把一些反覆要用到的代碼封裝在裡面,減少代碼的冗餘,根本沒意識到類在物件導向編程思想中的重要性,只是單純的為了減少代碼冗餘.其實物件導向思想就是把資料庫中的每張表抽象成一個類(在關係型資料庫中,表就是一個實體,我們經常畫的資料庫實體關聯圖,就是用來描述這張表的),類中的屬性工作表示表中的每一列,類中的方法則對應與對錶的各種操作. 比如有一張使用者表,有ID,UserName,Password三個欄位,使用者表的操作用添加,刪除,修改,查詢
Time of Update: 2018-12-03
autowire="byName"會自動裝配屬性與Bean id相同的Bean,例如有兩個BEAN,<bean id="userDAO" class="com.springdemo.dao.AdminDAO"></bean><bean id="userService3" autowire="byName"
Time of Update: 2018-12-03
1.必須引用System.EnterpriseServices和System.Reflection2.組件類必須派生至ServicedComponent.3.組件類一般情況下都要由下面[Transaction(TransactionOption.Required)] [assembly:
Time of Update: 2018-12-03
LIKE LINE OF後面接一個內表,表示一個DATA參數具有和內表一樣的結構(structure),例如有一個TABLES:Z_USER,Z_USER有兩個欄位,一個ID,一個NAME,那麼DATA:WA LIKE LINE OF Z_USER 表示WA和Z_USER的STRUCTURE一樣,可以吧WA當做Z_USER的WORK AREA來用。LIKE TABLE OF
Time of Update: 2018-12-03
public ActionForward execute(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) {LoginForm loginForm = (LoginForm) form;// TODO Auto-generated method stubString name = loginForm.getName();String
Time of Update: 2018-12-03
export PATH=$PATH:~/bin #命令搜尋路徑加上~/binexport PATH=$PATH:. #給命令搜尋路徑加上目前的目錄, '.' 代表目前的目錄這時你可以編寫一個shell指令碼扔在~/bin 目錄下,比如我編寫了一個myecho指令碼:#!/bin/bashecho $1 然後把這個指令碼仍在~/bin目錄下,這時候直接可以在任何目錄下使用 myecho "hello world" 在螢幕上輸出hello
Time of Update: 2018-12-03
import java.text.DecimalFormat;import java.text.NumberFormat;import java.text.SimpleDateFormat;import java.util.Calendar;/** * myeclipse blue 7.5 keygen * * @author Administrator * */public class Crack { public static final void main(String[] args)