Skip to content

Instantly share code, notes, and snippets.

View rahulahoop's full-sized avatar
😶‍🌫️

Rahul Bhonsale rahulahoop

😶‍🌫️
View GitHub Profile
@ricardomalias
ricardomalias / Controller.java
Last active November 6, 2020 10:12
spring EventListener example
package com.forleven.finance.audit.controller;
import com.forleven.finance.audit.event.InvoiceAuditEvent;
import com.forleven.finance.audit.form.InvoiceAuditObjectForm;
import lombok.extern.slf4j.Slf4j;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.core.task.TaskExecutor;
@bijukunjummen
bijukunjummen / gist:3315275
Created August 10, 2012 16:08
Test Cache with Spring Cache Abstraction
package org.bk.samples.cache;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import org.junit.Test;