2013-09-04 12 views
0

저는 봄에 꽤 새로 왔습니다. mongoDb 및 스프링 보안으로 봄 프로젝트를 설정하려고합니다.mongoDb로 봄 보안 설정하기

는 내가 아주 가까이라고 생각하지만 난 정보를 검색 및 내 pom.xml 파일

치어 일부 문제가 있음을 찾기 위해 노력했다

java.lang.NoSuchMethodError: org.springframework.core.convert.converter.ConverterRegistry.addConverter(Ljava/lang/Class;Ljava/lang/Class;Lorg/springframework/core/convert/converter/Converter;)V 

오류를 얻고있다. xxx

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
    http://maven.apache.org/maven-v4_0_0.xsd"> 
    <modelVersion>4.0.0</modelVersion> 
    <groupId>com.helpweb</groupId> 
    <artifactId>helpweb</artifactId> 
    <packaging>war</packaging> 
    <version>1.0-SNAPSHOT</version> 
    <name>Help Web</name> 
    <url>http://maven.apache.org</url> 
    <dependencies> 
     <dependency> 
      <groupId>cglib</groupId> 
      <artifactId>cglib</artifactId> 
      <version>2.2</version> 
     </dependency> 

     <!-- spring security --> 
     <dependency> 
      <groupId>org.springframework.security</groupId> 
      <artifactId>spring-security-core</artifactId> 
      <version>3.1.4.RELEASE</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.security</groupId> 
      <artifactId>spring-security-web</artifactId> 
      <version>3.1.4.RELEASE</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.security</groupId> 
      <artifactId>spring-security-config</artifactId> 
      <version>3.1.4.RELEASE</version> 
     </dependency> 

     <!-- spring framework --> 
     <dependency> 
      <groupId>org.springframework</groupId> 
      <artifactId>spring-orm</artifactId> 
      <version>3.2.0.RELEASE</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework</groupId> 
      <artifactId>spring-webmvc</artifactId> 
      <version>3.2.0.RELEASE</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.data</groupId> 
      <artifactId>spring-data-mongodb</artifactId> 
      <version>1.2.0.RELEASE</version> 
     </dependency> 


     <dependency> 
      <groupId>jstl</groupId> 
      <artifactId>jstl</artifactId> 
      <version>1.2</version> 
     </dependency> 

     <dependency> 
      <groupId>junit</groupId> 
      <artifactId>junit</artifactId> 
      <version>3.8.1</version> 
      <scope>test</scope> 
     </dependency> 
    </dependencies> 
    <build> 
     <plugins> 
      <plugin> 
       <artifactId>maven-compiler-plugin</artifactId> 
       <version>2.3.2</version> 
       <configuration> 
        <source>1.6</source> 
        <target>1.6</target> 
       </configuration> 
      </plugin> 
     </plugins> 
     <finalName>helpweb</finalName> 
    </build> 
</project> 

어디에서 문제가 될 수 있는지 아는 사람이 있습니까? 어떤 도움

감사

마이클

답변

0

당신은 spring-core의 잘못된 버전이 전이 종속성을 통해 끌어 당겨 수 있습니다. 추가하여 구체적인 버전을 강제로 시도해보십시오

<dependency> 
    <groupId>org.springframework</groupId> 
    <artifactId>spring-core</artifactId> 
    <version>3.2.0.RELEASE</version> 
</dependency> 

그리고 당신은 MongoDB에 대한 spring-orm 필요하지 않습니다. ORMObject-Relational Mapping을, MongoDB은 관계형을 나타냅니다.

JUnit 4도 사용하십시오!

+0

감사합니다 ... 3.0.7을 사용했고 작동 중입니다. :) –