this.emailMakerVelocityService = emailMakerVelocityService;
}
- @RequestMapping(method = RequestMethod.GET)
+ @RequestMapping(method = RequestMethod.POST)
@ResponseStatus(HttpStatus.OK)
public void emails() throws MessagingException {
final String emailSubject = emailMakerVelocityService.getSubject(SUBJECT_MESSAGE_KEY, Locale.getDefault());
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd
http://www.springframework.org/schema/task
- http://www.springframework.org/schema/task/spring-task-3.0.xsd">
+ http://www.springframework.org/schema/task/spring-task.xsd">
<!--
Searches for beans in packages (instead of XML configuration we can use
<!-- Enable Asynchronous Spring Tasks -->
<task:annotation-driven />
- <task:executor id="asyncEmailSender" pool-size="0-2" keep-alive="60"
- queue-capacity="2" rejection-policy="CALLER_RUNS" />
+ <task:executor id="asyncEmailSender" pool-size="1-10" keep-alive="60"
+ queue-capacity="10" rejection-policy="CALLER_RUNS" />
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">