28 lines
542 B
Java
28 lines
542 B
Java
package net.educoder.bridge.git.task;
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import net.educoder.bridge.git.model.GitConfig;
|
|
import net.educoder.bridge.git.service.GitService;
|
|
|
|
/**
|
|
* git初始化凭证设置
|
|
*/
|
|
@Component
|
|
public class GitInitTask {
|
|
|
|
@Autowired
|
|
private GitConfig gitConfig;
|
|
@Autowired
|
|
private GitService gitService;
|
|
|
|
@PostConstruct
|
|
public void init() {
|
|
gitService.gitCredentialStore(gitConfig);
|
|
}
|
|
|
|
}
|