The NoReply recorder names the constructor Spring should use

FixEmailService
Shipped
September 12, 2026 at 12:06 AM UTC
Author
Kamo
Commit
30003d7

It has two, the second for tests, and with neither marked Spring picks neither: the context failed with "No default constructor found" and took EmailSmtpService, and so the whole service, down with it. The unit tests called the constructors directly and could not see it. NoReplyOutboundWiringTest now lets Spring build the recorder, the SMTP service and the controller from their real constructors. It fails with exactly that error when the annotation is removed.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing