Skip to content

Instantly share code, notes, and snippets.

View fabioebner's full-sized avatar

Fabio Ebner fabioebner

View GitHub Profile
@filipeovercom
filipeovercom / AbstractService.java
Created June 3, 2019 23:24
Serviço abstrato - Spring Boot+MongoDB
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.mongodb.core.query.Update;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;