portal 工程依賴于dao、model、workflow、util工程,通過增加依賴工程能解決編譯問題。
但是使用tomcat調(diào)試的時(shí)候,會(huì)找不到其它工程的class。
在工程名上右擊,選 Properties,找到 Java Build Path,選第二個(gè)選項(xiàng)卡“Projects”,點(diǎn)“Add...”按鈕,
會(huì)彈出“Required Project Selection”框,里面會(huì)出現(xiàn)這個(gè)工作區(qū)中除了當(dāng)前工程之外的其他工程,把需要鏈
接的工程勾選上點(diǎn)“OK”就可以了
右擊工程名,選擇Properties,選擇libraries Tab,點(diǎn)Add External Class Folder...,
選擇你lib工程的目標(biāo)輸出文件夾,添加進(jìn)去應(yīng)該就可以
這樣可以解決多個(gè)依賴工程自動(dòng)輸出class的問題。
<classpathentry combineaccessrules="false" kind="src" path="/business"/>
<classpathentry combineaccessrules="false" kind="src" path="/dao"/>
<classpathentry combineaccessrules="false" kind="src" path="/datamodel"/>
但是使用tomcat調(diào)試的時(shí)候,會(huì)找不到其它工程的class。
在工程名上右擊,選 Properties,找到 Java Build Path,選第二個(gè)選項(xiàng)卡“Projects”,點(diǎn)“Add...”按鈕,
會(huì)彈出“Required Project Selection”框,里面會(huì)出現(xiàn)這個(gè)工作區(qū)中除了當(dāng)前工程之外的其他工程,把需要鏈
接的工程勾選上點(diǎn)“OK”就可以了
右擊工程名,選擇Properties,選擇libraries Tab,點(diǎn)Add External Class Folder...,
選擇你lib工程的目標(biāo)輸出文件夾,添加進(jìn)去應(yīng)該就可以
這樣可以解決多個(gè)依賴工程自動(dòng)輸出class的問題。
<classpathentry combineaccessrules="false" kind="src" path="/business"/>
<classpathentry combineaccessrules="false" kind="src" path="/dao"/>
<classpathentry combineaccessrules="false" kind="src" path="/datamodel"/>