Time of Update: 2018-12-03
Log4j的配置放到Spring的前面<!--Log4j配置--><context-param><param-name>log4jConfigLocation</param-name><param-value>/WEB-INF/log4j.properties</param-value></context-param><context-param><param-name>log4jRefr
Time of Update: 2018-12-03
首先說明JSLing是Notepad++的專用軟體!我的就是Notepad++1、安裝JSLint:找到如下:找到JSLint然後選擇,最後InStall。等待吧……安裝成功當然,我早安裝好了……2、開始檢測js檔案,選擇JSLint Current File: 3、開啟檔案後在Notepad++下面就出現了JSLint,如果有錯誤,則會顯示如下: 4、還有就是要注意的是一些關於JSLint的配置: 一般就選擇前兩項: 下來就是改錯啦!lalalalallalala……
Time of Update: 2018-12-03
昨天搞excel檔案下載,下載下來的中文檔案名稱一直亂碼,但是內容沒有亂碼,試了網上很多方法,都沒有成功,最後是一同事找到的解決辦法1.零配置,這一塊沒有什麼@Result(name = "success", type = "stream", params =
Time of Update: 2018-12-03
說明:今天在弄倆個項目同時部署到tomat6中時候,遇到了一些問題,弄了一個小時,再次總結下,1、webapp. root 重用問題通常情況下每一個web項目的web.xml中都會預設有一個webapp.root,如果有過個webapp的時候,那麼每一個app都會搶佔預設的webapp.root, 這樣就出現org.springframework.web.util.Log4jConfigListenerjava.lang.IllegalStateException: Web app root
Time of Update: 2018-12-03
Window size and scrollingFinding the size of the browser windowClue browser can only work out window width.Tkhtml Hv3 has the body/documentElement clientHeight/Width values reversed - versions before September 2007 also do not support
Time of Update: 2018-12-03
下面就是擷取視窗大小的函數:function alertSize() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && (
Time of Update: 2018-12-03
今天在做Tomcat效能調優的時候,查了些資料,Tomcat主要有倆個地方需要調優1)Tomcat啟動命令列中的最佳化參數即JVM最佳化2)Tomcat容器自身參數的最佳化1、啟動的時候JVM的記憶體調優,其中包含了系統的JVM可使用數、記憶體回收效率與線程阻塞情況、增加了系統響應效率,重點加紅了。export JAVA_OPTS="-server -Xms1400M -Xmx1400M -Xss512k -XX:+AggressiveOpts -XX:+UseBiasedLocking
Time of Update: 2018-12-03
java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class
Time of Update: 2018-12-03
<hibernate-configuration><session-factory> <property name="myeclipse.connection.profile">sencloudmm</property> <property name="connection.url"> jdbc:postgresql://xxxx:5432/sencloudMM </property> <property name=
Time of Update: 2018-12-03
實作類別似於Identity功能中要素閃爍的另一種方法為實作類別似於ArcMap中的Identity功能,昨天找了半天資料,今天又整了將近一天才基本上完成了,實屬不易啊。這裡我先不說擷取要素資訊的部分,主要說一下要素閃爍的功能。網上找的資料大同小異,我都轉載到我的部落格裡了,至少我試了三種方法,但是多多少少都有問題。不是選不中,就是選中不閃爍。大多數人用的方法是IIdentifyObj.Flash
Time of Update: 2018-12-03
tomcat@mo-channel:~/tomcat/bin$ ./shutdown.sh Using CATALINA_BASE: /home/tomcat/tomcatUsing CATALINA_HOME: /home/tomcat/tomcatUsing CATALINA_TMPDIR: /home/tomcat/tomcat/tempUsing JRE_HOME: /usrUsing CLASSPATH:
Time of Update: 2018-12-03
一張表格儲存體了學生的成績,班級號等資訊,統計各個班的合格率(>=60)、優秀率(>=80)。要考慮到有的班級沒有人通過或者合格的情況。建表:create table score(s_id number(10),num number(3),class_id number(10));插入測試資料:insert into score values(1,90,1001);insert into score values(2,60,1001);insert into score
Time of Update: 2018-12-03
常用的hibernate annotation標籤如下: @Entity --注釋聲明該類為持久類。將一個Javabean類聲明為一 個實體的資料庫表映射類,最好實現序列化.此時,預設情況下,所有的類屬性都為映射到資料表的持久性欄位.若在類中,添加另外屬性,而非映射來資料庫的, 要用下面的Transient來註解. @Table(name="promotion_info")
Time of Update: 2018-12-03
Inverse和cascade是Hibernate映射中最難掌握的兩個屬性。兩者都在對象的關聯操作中發揮作用。1.明確inverse和cascade的作用 inverse 決定是否把對對象中集合的改動反映到資料庫中,所以inverse只對集合起作用,也就是只對one-to-many或many-to-many有效(因
Time of Update: 2018-12-03
第一種是使用進階查詢DetachedCriteria實現,代碼如下:String alias = "user_"; //查詢時的table別名DetachedCriteria dc = DetachedCriteria.forClass(User.class,alias);ProjectionList pList = Projections.projectionList();pList.add(Projections.property(alias + "." + "id").as("id"));
Time of Update: 2018-12-03
說明:今天在做一個OA的簡單增刪除該查的時候,有一個時間類型的欄位(資料插入時間),本身想著,這個欄位直接中Oracle資料庫設定一個Default Value
Time of Update: 2018-12-03
問題緣由: 客戶要求某個欄位支援小數點,資料庫一開始設計的時候只支援整數,在通過alert語句修改類型,出現了ora-001440的錯誤,解決辦法 step1:備份原來的表,create table WF_TEACHER_REMUNERATION_BAK as select * from WF_TEACHER_REMUNERATION;step2:刪除原來表的資料delete from WF_TEACHER_REMUNERATION;step3:修改精度ALTER TABLE "
Time of Update: 2018-12-03
今天在做項目的時候無意看到 在spring的配置中的根節點上有個 default-lazy-init="true"配置,從來沒有用過,google下,記錄如下1、spring的default-lazy-init參數 spring在啟動的時候,會預設載入會預設載入整個對象執行個體圖,從初始化ACTION配置、到 service配置到dao配置、乃至到資料庫連接、事務等等。這樣可以減少web伺服器在運行時的負擔,但是對於開發人員來說無疑是效率極低的一個設定了。 spring提供了default-
Time of Update: 2018-12-03
2013-5-22 16:29:48 org.apache.catalina.core.AprLifecycleListener init資訊: Loaded APR based Apache Tomcat Native library 1.1.23 using APR version 1.4.6.2013-5-22 16:29:48 org.apache.catalina.core.AprLifecycleListener init資訊: APR capabilities: IPv6
Time of Update: 2018-12-03
在命令提示字元中運行robocopy樣本:robocopy E:\xutianlong F:\xutianlong /E複製子目錄,包括空的子目錄。參數解釋一、 複製選項: 參數解釋: /S :: 複製子目錄,但不複製空的子目錄。 /E :: 複製子目錄,包括空的子目錄。 /LEV:n :: 僅複製來源目錄樹的前 n 層。 /Z :: 在可重新啟動模式下複製檔案。 /B :: 在備份模式下複製檔案。 /ZB ::