原创 @ManyToOne @OneToMany

轉載:@ManyToOne  @ManyToOne註解的這端,是多端 1.在註釋@ManyToOne(cascade=CascadeType.REFRESH,optional=true)中將屬性optional設置爲tru

原创 Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.

如果用jboss部署seam文件出現:Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.錯誤 每個.

原创 linux系統下Eclipse不能打開出現An error has occurred. See the log file…/.metadata/.log.問題

操作系統linux 當開啓eclipse打不開,出現 Job found still running after platform shutdown.  Jobs should be canceled by the plugin that

原创 ubuntu 下安裝的eclips找不到JAVA_HOME問題

安裝eclisp: 1.將eclips文件放到你想放的位置 2.在終端輸入 vim .bashrc 3.打開.bashrc文件後,在最後一行添加:     export    ECLIPSE_HOME=/home/huihui/app/e

原创 ubuntu 中怎麼截圖?ubuntu 12.10 截圖工具及快捷鍵設置

轉自: sunmoon   節選 在ubuntu 10.04 的時候,還可以很方便地在applications 那裏找到screenshot 截圖工具,可是自從ubuntu 10.10 以後,我開始老是找不到ubuntu 的截圖工

原创 用CSS的@import添加外部樣式表

<link>標籤是HTML的,@import 是CSS的一部分。 寫法:@import url(地址) 用法: <style type="text/css">        @import url("地址"); </style> 也可用多

原创 樹--遞歸實現先、中、後遍歷,層序遍歷和樹的深度

#include <stdio.h> #include <stdlib.h> #define TElemType char #define ERROR 0 #define OK 1 #define MaxLength 10 //結點數不

原创 用Jboss跑一個seam自帶的example

我用的Jboss 5.0和 seam 2.2版本 linux系統,話不多說,直奔主題。 啓動Jboss: 找到Jboss的目錄下:……/jboss/bin   然後輸入命令 ./run.sh   啓動jboss 輸入ctrl + sh

原创 臨接矩陣的存儲和輸出

#include <stdio.h> #include <malloc.h> #define VERTEX_MAX 30 #define MAXSIZE 20 typedef struct { int arcs[VERTEX_MA

原创 使用Eclipse構建Maven的SpringMVC項目

很感謝這位大神的博客,讓我成功構建項目 http://limingnihao.iteye.com/blog/830409 但在按照這篇文章構建構建時遇到了一些問題,在這裏總結一下: 問題一.2.3.2 配置Project Facets

原创 鄰接表的建立和廣度優先遍歷

#include <stdio.h> #include <malloc.h> #define MAX_VEX 50 typedef struct NODE { int vertex; //頂點的索引 struct NODE *ne

原创 創建seam文件

環境:Jboss 5.0 版 seam 2.2版 linux系統 啓動Jboss: 找到Jboss的目錄下:……/jboss/bin   然後輸入命令 ./run.sh   啓動jboss 創建seam文件,以下選項按我自己

原创 linux下錄屏工具

我嘗試了兩款: 第一款是:Tibesti 安裝命令是:sudo add-apt-repository ppa:ackondro/tibesti                        sudo apt-get update     

原创 Linux環境下的subversion版本控制命令

次文章是看了《版本控制之道》及用過subversion後一些經驗的總結 安裝: 1.svn-version :查看subversion是否正確安裝 2.svnadmin-version:查看subversion管理工具有沒有安裝 創建項目

原创 html中文字符亂碼問題

在編輯代碼時輸入的是中文字符,用瀏覽器打開時出現亂碼,解決方案: <html >   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head