0

JHipster と Spring のことをどんどんよく知っていますが、新しいユーザーの登録に問題があります。新しいユーザーを登録しようとすると、次のエラー メッセージが表示されます。この Stackoverflow issue Email service in Jhipsterによると、application-dev.yml または application-prod.yml にプロパティを入力する必要があります。

Web アプリは、自分自身を登録できるさまざまなユーザーから使用する必要があります。これが正しい方法だとは思いませんか?ここで何か不足していますか?これを機能させるには SMTP サーバーが必要ですか?

2017-12-05 09:19:58.006  WARN 31208 --- [irpd-Executor-2] irpd.service.MailService                 : Email could not be sent to user 'test.test@gmail.com'

org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
  nested exception is:
    java.net.ConnectException: Connection refused: connect. Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
  nested exception is:
    java.net.ConnectException: Connection refused: connect

application-dev.yaml に次のエントリがあります。

 mail:
        host: localhost
        port: 25
        username:
        password:
    messages:
        cache-seconds: 1
    thymeleaf:
        cache: false
    http:
        multipart:
            max-file-size: 5MB
            max-request-size: 20MB
4

1 に答える 1