Skip to content

Instantly share code, notes, and snippets.

import java.util.List;
import java.util.function.Function;
import java.util.stream.Collector;
import java.util.stream.Collectors;
public class StreamUtils {
public static <T> Collector<T, ?, T> singletonCollector() {
@Aspect
public class LoggingAspect {
private static final Logger LOGGER = LoggerFactory.getLogger(LoggingAspect.class);
public LoggingAspect() {
}
/**
* Pointcut that matches all Spring beans in the application's main packages.