我要上RequestContext课。作用域是请求上下文和proxyTargetClass模式。我还在一个aspectj类中使用它,以便记录日志。 I am using also Apache Camel in order to provide saga pattern by using InMemorySaga service. When the service compansate it s getting an error. By the way, i m not calling as API just examining to call in proc.
Is there any
我需要发送一封异步方式的电子邮件,同时保存到数据库的数据。//I have tried with service layer annotating.But not worked. class MyService{ mail.sendEmailQuote(listOfData); myDao.saveData(listOfData);
我在schedule类中有两个异步任务,分别是testAsyncTask1()和testAsyncTask2()。线程被卡在testAsyncTask1()的while(true)中,因此无法执行testAsyncTask2()。如何在多线程中运行testAsyncTask1()和testAsyncTask2()来避免上述情况?@Configuration@EnableScheduling @Scheduled(cron = S