Skip to content

Instantly share code, notes, and snippets.

View mp911de's full-sized avatar
I may be slow to respond…

Mark Paluch mp911de

I may be slow to respond…
View GitHub Profile
kazuki43zoo /
Last active February 11, 2020 14:08
R2DBC + MyBatis
package org.mybatis.r2dbc.session;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
public interface DemoMapper {
Mono<Integer> insert(Demo demo);
Mono<Integer> insert(Mono<Demo> demo);
forax /
Created July 24, 2016 17:46
get the trusted lookup using Unsafe.defineAnonymousClass
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodHandles.Lookup;
import java.lang.invoke.MethodType;
import java.lang.reflect.Field;
import java.util.Base64;
public class LookupProxyTest {
static final String PROXY_CLASS =