小编Seb*_*ces的帖子

无法使用SSH将IntelliJ-IDEA连接到GitLab

我正在尝试将我的GitLab存储库与IntelliJ-IDEA连接,但它仍然无法连接到repo.我尝试了下一件事:

  • 我正确安装了msysgit
  • 生成SSH密钥(https://help.github.com/articles/generating-ssh-keys/)
  • 在GitLab密钥上添加了密钥
  • 定义环境变量HOME USERPROFILE指向C:\ Users\sebastian.garces.ssh.%USERPROFILE $ /.ssh%HOME $ /.ssh
  • 在IntelliJ中将SSH可执行文件更改为Native

我从这个链接做了很多事情:

和许多其他谷歌搜索

我不知道还有什么不起作用.

更新:当我尝试克隆存储库并按下测试按钮时,它会加载并加载,一段时间后没有任何反应它会给我这个错误:存储库测试失败

git ssh intellij-idea gitlab

24
推荐指数
1
解决办法
4万
查看次数

Scala-在一天的指定时间安排任务:每天下午6点运行任务

我的问题是我如何安排在给定时间每天执行的任务。

我有下一个代码:

class ScheduleService {
   private val mail = new MailController

   def sendMailSchedule={

     val actorSystem = ActorSystem()
     val scheduler = actorSystem.scheduler
     val task = new Runnable { 
      def run() { 
        mail.sendMail("user@gmail.com", "Subject", "Body")
        println("Send")} 
      }
     implicit val executor = actorSystem.dispatcher

     scheduler.schedule(
       initialDelay = 0 seconds,
       interval = 7 day,
       runnable = task)
  }
}
Run Code Online (Sandbox Code Playgroud)

邮件控制器已实现,并发送邮件。

此代码每7天发送一封邮件。我想要的是每天下午6点发送邮件。

email schedule scala scheduler task

3
推荐指数
1
解决办法
979
查看次数

标签 统计

email ×1

git ×1

gitlab ×1

intellij-idea ×1

scala ×1

schedule ×1

scheduler ×1

ssh ×1

task ×1