2017-12-05 15 views
0

JHipsterとSpringをよく理解していますが、新しいユーザーの登録に問題があります。新しいユーザーを登録しようとすると、以下のエラーメッセージが表示されます。このStackoverflowの問題Email service in Jhipsterによると私は、アプリケーションdev.ymlまたはアプリケーションprod.ymlのプロパティを記入する必要があります。JHipster新規ユーザー登録 - > MailConnectException

web-appは、自分自身を登録できる別の人から使用する必要があります。私はこれが正しい方法だとは思わない?私はここに何かを逃していますかこれを動作させるにはSMTPサーバーが必要ですか?

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

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 

私は自分のアプリケーション-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 

答えて

関連する問題