@RestController public static class SpringWebBeanResolutionTest.TestApplication.MessagingController extends Object
Modifier and Type | Field and Description |
---|---|
(package private) MessagingService |
messagingService |
Constructor and Description |
---|
MessagingController() |
Modifier and Type | Method and Description |
---|---|
void |
email() |
void |
emailAsync(String templateName) |
SpringWebBeanResolutionTest.ErrorDto |
getError() |
void |
sms() |
void |
smsAsync(String templateName) |
@Autowired MessagingService messagingService
@RequestMapping(value="email") public void email() throws MessagingException
MessagingException
@RequestMapping(value="sms") public void sms() throws MessagingException
MessagingException
@RequestMapping(value="async/email") @Async public void emailAsync(@RequestParam(value="template") String templateName) throws MessagingException
MessagingException
@RequestMapping(value="async/sms") @Async public void smsAsync(@RequestParam(value="template") String templateName) throws MessagingException
MessagingException
@RequestMapping(value="async/error") public SpringWebBeanResolutionTest.ErrorDto getError()
Copyright © 2021. All rights reserved.