集成SnailJob报错

Author: wzh195879702Created Oct 13, 2025Updated Oct 21, 2025

我在最外层pom和standalone的pom里加入了

            <dependency>
                <groupId>com.aizuda</groupId>
                <artifactId>snail-job-client-starter</artifactId>
                <version>1.8.0</version>
            </dependency>
            <dependency>
                <groupId>com.aizuda</groupId>
                <artifactId>snail-job-client-retry-core</artifactId>
                <version>1.8.0</version>
            </dependency>
            <dependency>
                <groupId>com.aizuda</groupId>
                <artifactId>snail-job-client-job-core</artifactId>
               <version>1.8.0</version>
            </dependency>

在启动类也加入了@EnableSnailJob注解,yml也确认配置没问题 但运行就报错 2025-10-13T14:30:46.918+08:00 WARN 3348 --- [jetlinks-platform] [ main] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'configureSnailJobHost' defined in class path resource [com/aizuda/snailjob/client/starter/SnailJobClientJobCoreAutoConfiguration.class]: Unsatisfied dependency expressed through method 'configureSnailJobHost' parameter 0: Error creating bean with name 'snailJobNetworkUtils' defined in class path resource [com/aizuda/snailjob/common/core/CommonCoreConfigure.class]: Unsatisfied dependency expressed through method 'snailJobNetworkUtils' parameter 0: No qualifying bean of type 'com.aizuda.snailjob.common.core.network.SnailJobNetworkProperties' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}


APPLICATION FAILED TO START


Description:

Parameter 0 of method snailJobNetworkUtils in com.aizuda.snailjob.common.core.CommonCoreConfigure required a bean of type 'com.aizuda.snailjob.common.core.network.SnailJobNetworkProperties' that could not be found.

Action:

Consider defining a bean of type 'com.aizuda.snailjob.common.core.network.SnailJobNetworkProperties' in your configuration.

Source: jetlinks/jetlinks-community