I have customDao as below in my springboot app,
@Component
public class CustomDao {
private final JdbcTemplate jdbcTemplate
@Autowired
private PlatformTransactionManager transactionManager;
def logger = LoggerFactory.getLogger(this.class);
@Autowired
public CustomDao(JdbcTemplate template) {
this.jdbcTemplate = template
}
public insertRecord(sql,params){
//insert
}
public updateRecord(sql,params){
//update
}
}
And am trying to make only update operation asynchronously in a new Thread, I havent worked much on Threads, can someone please help me with this?