JiuyeXD's Blog
九叶
九叶博主

越努力 越幸运

登录
夜间

[记录] - Maven引入本地jar包 | Failed to introspect Class报错

org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'pushCallback': Unsatisfied dependency expressed through field 'communicationService'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'communicationServiceImpl': Lookup method resolution failed; 
nested exception is java.lang.IllegalStateException: Failed to introspect Class [ai.service.impl.CommunicationServiceImpl] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@681a9515]
        <dependency>
            <groupId>com.wanlingyun</groupId>
            <artifactId>ChatService</artifactId>
            <version>1.0</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/lib/ChatService-1.0-SNAPSHOT.jar</systemPath>
        </dependency>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>1.4.2.RELEASE</version>
                <configuration>
                    <!--设置为true,以便把本地的system的jar也包括进来-->
                    <includeSystemScope>true</includeSystemScope>
                </configuration>
            </plugin>
THE END