Skip to content

Instantly share code, notes, and snippets.

@Tholian
Tholian / GenericVarArgTest.java
Created September 22, 2021 14:49
Java compiler breach
public class GenericVarArgTest {
private static InnerClass myInnerClass;
@Test
public void testMethodInvocation()
throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
doSomething();
System.out.println("Done .. all fine");
@Tholian
Tholian / RequestAndResponseLoggingFilter.java
Created August 9, 2021 14:12 — forked from michael-pratt/RequestAndResponseLoggingFilter.java
Simple Spring Boot Request and Response Logging Filter
// Adapted from https://gist.github.com/int128/e47217bebdb4c402b2ffa7cc199307ba
package com.elvtn.logging;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.jmx.export.annotation.ManagedOperation;
import org.springframework.jmx.export.annotation.ManagedResource;