package io.trygvis.spring; import io.trygvis.async.AsyncService; import io.trygvis.async.spring.SpringJdbcAsyncService; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.transaction.support.TransactionTemplate; @Configuration public class DefaultConfig { @Bean public AsyncService asyncService(TransactionTemplate transactionTemplate, JdbcTemplate jdbcTemplate) { return new SpringJdbcAsyncService(transactionTemplate, jdbcTemplate); } }