maven中pom文件已經加載到jar包但是在程序發佈時jar包卻沒有加入到動態web項目lib下:
方案一:
1.項目工程右鍵->maven->update project;
方案二:
1.項目工程右鍵->properties->Deployment Assembly->Add->
java build path entries->next->選擇maven dependencies->apply->finish.
在spring jar在工程有被引用進來了,但是代碼中無法引用類庫:
1.先進行項目工程右鍵->maven->Disable maven nature.
2.然後項目工程右鍵->configure->convert to maven project.