講師回答 / moocer
你的代碼是課程的示例代碼嗎?如果是示例代碼,調(diào)用是在junit中,所以junit會(huì)報(bào)錯(cuò)
已采納回答 / moocer
1.這里的可以把這里public void pointcut() {}方法理解成具體pointcut(切入點(diǎn))的聲明,實(shí)際對(duì)應(yīng)的切入點(diǎn)是“execution(* com.imooc.aop.aspectj.biz.*Biz.*(..))”;2.@AfterReturning,是在返回后執(zhí)行,returning="returnValue"的“returnValue”就是具體的方法(* com.imooc.aop.aspectj.biz.*Biz.*(..))的返回值,對(duì)應(yīng)public void afterR...
2014-11-30
已采納回答 / 偌顏寧
進(jìn)入:window -> Preference... -> MyEclipse -> Editors -> XML ->XML Catalog選擇:選中“User Specified Entries”,點(diǎn)擊“Add...”按鈕填入:URI: 請(qǐng)選擇本地文件系統(tǒng)上SPRING_HOME/dist/resources/spring-beans-4.0.xsd 文件 (在Eclipse安裝文件里查找此文件)Key Type: 選擇Schema LocationKey: http:/...
講師回答 / moocer
Spring3中增加了@Value注解,可以看一下@Value注解的實(shí)現(xiàn)
講師回答 / moocer
泛型自動(dòng)裝載是spring4新增功能,課程是基于spring4.0.5的