1
我將編譯spring-core源代碼並添加所有依賴項,但出現此錯誤: DefaultNamingPolicy未在SpringNamingPolicy
類中解析。我還沒有找到所需的罐子。我錯過了什麼?Spring 4框架編譯錯誤
public class SpringNamingPolicy extends DefaultNamingPolicy{
.
.
.
}
Maven依賴:
<dependencies>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>net.sf.jopt-simple</groupId>
<artifactId>jopt-simple</artifactId>
<version>4.4</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.7.4</version>
</dependency>
如何編譯它們?你在使用Maven嗎? – chrylis
@chrylis是的,我添加了所有的依賴關係 –
'spring-core'已經有了自己的POM。你是說你自己寫了嗎? – chrylis