Cannot find org.springframework.util.ClassUtils.getMethod and could not initialize DefaultConversionService

后端 未结 1 1259
不思量自难忘°
不思量自难忘° 2021-01-28 22:02

Once I run my application it shows following error in the console. I studied this question but its answer was not helpful.



        
相关标签:
1条回答
  • 2021-01-28 22:53

    As I expected the problem was with the dependencies. I could solve the issue by updating my pom.xml and cleaning the project.

    pom.xml

    <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/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>Spring2</groupId>
        <artifactId>Spring2</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <name>Spring2</name>
    
    
        <url>http://maven.apache.org</url>
        <properties>
            <spring.version>4.1.5.RELEASE</spring.version>
        </properties>
    
    
        <dependencies>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>${spring.version}</version>
            </dependency>
    
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
                <version>${spring.version}</version>
            </dependency>
    
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-webmvc</artifactId>
                <version>${spring.version}</version>
            </dependency>
    
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.0</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
    
    </project>
    
    0 讨论(0)
提交回复
热议问题