Skip to content

Instantly share code, notes, and snippets.

View tonycody's full-sized avatar
💭
I may be slow to respond.

XS tonycody

💭
I may be slow to respond.
View GitHub Profile
@tonycody
tonycody / scratch_16.java
Created May 10, 2023 09:54
NashornScriptEngine CompileScript Cache
import cn.hutool.core.convert.Convert;
import jdk.nashorn.api.scripting.NashornScriptEngine;
import lombok.NonNull;
import javax.script.Bindings;
import javax.script.Compilable;
import javax.script.CompiledScript;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import javax.script.SimpleBindings;