Time of Update: 2018-12-07
建立一個 log4j.properties 檔案,寫入log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layout=org.apache.log4j.PatternLayoutlog4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%nlog4j.logger.com.ibatis=debuglog4j.logger.com.
Time of Update: 2018-12-07
javax.faces.CONFIG_FILES 資源檔列表(,分隔的),JSF 將在裝載 faces-config.xml 之前載入這些資源設定檔 javax.faces.DEFAULT_SUFFIX 指定副檔名的尾碼,預設為 *.jsp javax.faces.STATE_SAVING_METHOD 配置是在 client還是在 server 儲存
Time of Update: 2018-12-07
Session Bean: 會話 Bean 用於實現商務邏輯,它分為有狀態 bean 和無狀態 bean Entity Bean: 實體 Bean MessageDriven Bean: 訊息驅動 Bean JBoss EJB JNDI 名稱預設規則: 1)、如果 EJB 打包尾碼為 *.ear ,則預設的 JNDI 路徑名稱是: 訪問本地介面:
Time of Update: 2018-12-07
1、 @RequestMapping 被處理的條件: 在dispatcher中出現對應的 HandlerMapping(為了實作類別型層級的註解)和HandlerAdapter(為了實現方法層級的註解)這在DispatcherServlet和DispatcherPortlet中都是預設的.2、@RequestMapping 註解的方法可以擁有下面類型的方法(順序任意,除非對於驗證結果需要緊跟在對應的命令對像後面) 1). 請求/響應對像(Servlet api or
Time of Update: 2018-12-07
Portlet 和 Servlet 算是兄弟有那麼一點點相似卻又有那麼一點點不同,因為 Servlet 和 Portlet 不盡然相同,所以研究小組決定將 portlets 定義成為一個新的組件,因此定義了 portlets 一個新的並且明確的介面與行為。為了儘可能與現有的 servlet 結合達到重複使用的目的,portlet 的規範利用了 servlet 的規範,許多觀念都很相似的,結合 portlets、servlets 及 jsp 在同一個網站系統中,我們稱為
Time of Update: 2018-12-07
dede
Time of Update: 2018-12-07
--函數CREATE function fn_GetPy(@str nvarchar(4000))returns nvarchar(4000)--WITH ENCRYPTIONasbegindeclare @intLenintdeclare @strRetnvarchar(4000)declare @temp nvarchar(100)set @intLen = len(@str)set @strRet = ''while @intLen > 0beginset @temp =
Time of Update: 2018-12-07
keytool -delete -alias sso-keystore "%JAVA_HOME%/jre/lib/security/cacerts" -storepass changeit keytool -delete -alias sso -storepass changeit rem keytool -list -keystore "%JAVA_HOME%/jre/lib/security/cacerts" -storepass changeit keytool -genkey -
Time of Update: 2018-12-07
Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
在OpenCms 中建立類型,在 opencms-module.xml 中對應的模組中,修改 CodeCode highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
一直很討厭預存程序,沒想到今天幫了我大忙啊,或許會因為今天讓我慢慢喜歡上預存程序吧,不多說了,切入正題! 在使用資料庫的時候,難免要在使用過程中進行刪除的操作,如果是使用int類型的欄位,令其自增長,這是個最簡單的辦法,但是後果會有些不是你想要的!看下這個Demo: 1.建立這樣的簡單的表Test. 2.設定欄位id的自增. 3.表添加資料 insert into Test(name) values('TestName') insert into
Time of Update: 2018-12-07
一,什麼是DTD? 1,XMl是一種元標記語言,是描敘語言的語言,定義標記的文法結構,從而產生新標記。而DTD則是為新標記建立文檔並進行規範說明。 也就是說XML定義標記的文法結構是通過DTD來定義,並指定文檔結構的規範,而XML文檔來使用標記。 2,自描述資料的規範。 二,DTD的作用 1,DTD定義了文檔中的元素(標記和屬性)和實體,以及相互關係。資料和結構分離。 2,通過DTD驗證XML文檔的有效性。DTD為解析器提供瞭解析XML文檔的依據。所以每個XML文檔必須指定對於哪個DTD有效。
Time of Update: 2018-12-07
組件的配置: 1、用註解 @Name 2、在 components.xml 設定檔裡面設定,如:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1<!-- 此種方法與 spring 類似 -->2<component name="demo" class="org.domain.pm.session.Demo"&
Time of Update: 2018-12-07
一、修改 portal-server.war/WEB-INF/context.xml 中的代碼,如下:Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
今天在寫頁面時用到了ymPrompt的win方法來彈出一個視窗。由於要用到擷取子視窗返回來的值判斷是否重新整理父視窗,在ymPrompt的組件Demo中一直沒有找到合適的方法實現,鬱悶的很,心裡仍不死心,有重頭到尾的那介紹的方法看了一遍,看到doHandler時有兩個參數sign和autoClose,看了方法介紹後,覺得這個方法可行(以前一直都是用ymPrompt.close方法來直接關閉子視窗),就寫了一段指令碼測試下,可以實現我想要的 ,現將代碼貼出如下: 父視窗代碼:
Time of Update: 2018-12-07
default-object.xml: 是個可選的xml設定檔,px 用來定義portal的布局,它也可以被用來定義不同的portals,pages,windows。此布局是儲存在資料庫中,這個設定檔在部署期間存到資料庫中Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
一、帶資料庫連接的匯入insert into OPENDATASOURCE('SQLOLEDB','Data Source=222.35.*.*;User
Time of Update: 2018-12-07
Spring aop execution pointcutexecution(modifiers-pattern? ret-type-pattern declaring-type-pattern? name-pattern(param-pattern) throws-pattern?)其中帶問號的modifiers-pattern?(public/protected) 和 declaring-type-pattern? throws-pattern? 可以不填傳回型別模式(
Time of Update: 2018-12-07
具體就拿一個簡單的例子來說吧:第一次從資料庫拿到一個DataTable後在後面的處理的過程中發現另外一個地方也要這個DataTable裡面的部分資料,例如說要這個DataTable中的前10條吧,我又不想從資料庫裡面再去讀取資料,想辦法從這個DataTable中拿出來,常用的可能就是迴圈一條條讀取,但是我還想走捷徑呢,google裡面找了下,也沒有發現什麼,最後想到DataTable有個DefaultView可以篩選一些紀錄的,那就給這個DataTable加一列吧,但是加一列怎麼加呢?在msdn
Time of Update: 2018-12-07
Seam 的事件配置的方式: 1、設定檔的方式(components.xml): Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1<event type="demoEvent">2 <!-- 此處可以有多個 action 它們按順序執行 -->3 <action execute="#{demo.