private String beanName;
public void afterPropertiesSet() throws Exception {
if(executorService == null && sendMailThreadPoolSize > 0) {
executorService = Executors.newFixedThreadPool(sendMailThreadPoolSize,new CustomizableThreadFactory(getClass().getSimpleName()+"-"));
log.info("create send mail executorService,sendMailThreadPoolSize:"+sendMailThreadPoolSize);
}
Assert.notNull(javaMailSender,"javaMailSender must be not null");
Assert.notNull(executorService,"executorService must be not null");