1. 程式人生 > >spring 源碼導入eclipse

spring 源碼導入eclipse

誰知 apache blog vax 錯誤 spa frame con 發現

使用 gradle:

..opensource\v3.2.6.RELEASE\spring-context\src\test\java\org\springframework\aop\target\CommonsPoolTargetSourceTests.java:26: 錯誤:
程序包org.apache.commons.pool.impl不存在

最後發現是依賴的包commons-pool沒有配置。關鍵是剛用 grade 誰知道這文件什用啊?

打開build.gradle,定位到如下位置

project("spring-context") {

然後在

testCompile("javax.inject:javax.inject-tck:1")這句話後面加上如下內容:

testCompile("commons-pool:commons-pool:1.5.3")

重新編譯即可。

spring 源碼導入eclipse