有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java缓存依赖项不适用于更高版本的Tomcat 9.0.37,同样适用于9.0.20

在上下文初始化期间-取消刷新尝试:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'taxLotsController': Unsatisfied dependency expressed through field 'taxLotsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taxLotsServiceImpl': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.frk.fds.api.service.impl.TaxLotsServiceImpl] from ClassLoader [ParallelWebappClassLoader


共 (1) 个答案

  1. # 1 楼答案

    请检查您对pom的依赖性。xml可能会出现一些依赖性问题:

    你可以试试这个:

        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>tomcat-catalina</artifactId>
            <version>9.0.37</version>
        </dependency>
    

    也许你的TaxLotsServiceImpl类指的是另一个类,即,现在不见了。 请找出这些缺失的依赖项(如果有)