启动问题修复

This commit is contained in:
even 2025-06-01 18:21:04 +08:00
parent 41a0e2cf9f
commit 7a57d6658c
4 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ import static java.lang.String.format;
@Component @Component
public class DockerClientFactory implements CommandLineRunner { public class DockerClientFactory implements CommandLineRunner {
@Resource @Resource(type = DockerEndpointDao.class)
private DockerEndpointDao dockerEndpointDao; private DockerEndpointDao dockerEndpointDao;
@Getter @Getter
private final Map<String, DockerClient> clientGroup = new ConcurrentHashMap<>(); private final Map<String, DockerClient> clientGroup = new ConcurrentHashMap<>();

View File

@ -10,6 +10,6 @@ import org.apache.ibatis.annotations.Mapper;
* @date: 2025/5/26 10:33 * @date: 2025/5/26 10:33
* @version: 1.0 * @version: 1.0
*/ */
@Mapper //@Mapper
public interface DockerEndpointDao extends BaseMapperX<DockerEndpointDo> { public interface DockerEndpointDao extends BaseMapperX<DockerEndpointDo> {
} }

View File

@ -50,7 +50,7 @@ public class ResourceManagerServiceImpl extends ServiceImpl<PipResourceManagerDa
@Resource @Resource
private PipResourceMachineDao machineDao; private PipResourceMachineDao machineDao;
@Resource @Autowired
private PipResourceDockerEndpointDao dockerEndpointDao; private PipResourceDockerEndpointDao dockerEndpointDao;
@Resource @Resource

View File

@ -14,7 +14,7 @@ import org.springframework.context.annotation.ComponentScans;
@SuppressWarnings("SpringComponentScan") @SuppressWarnings("SpringComponentScan")
@ComponentScan({"cd.casic"}) @ComponentScan({"cd.casic"})
@MapperScan(basePackages = "cd.casic.ci.**.dal") @MapperScan(basePackages = {"cd.casic.**.dal","cd.casic.**.dao"})
@SpringBootApplication(scanBasePackages = {"${ops.info.base-package}.server", "${ops.info.base-package}.module"}) @SpringBootApplication(scanBasePackages = {"${ops.info.base-package}.server", "${ops.info.base-package}.module"})
public class OpsServerApplication { public class OpsServerApplication {