feat: support Freemarker SpEL packer

This commit is contained in:
ReaJason
2026-08-30 21:19:42 +08:00
parent 305bc0e12c
commit 70935d6ab1
14 changed files with 161 additions and 25 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
VITE_APP_API_URL=http://127.0.0.1:8080
VITE_APP_API_URL=http://127.0.0.1:8889
VITE_APP_BASE_PATH=/
+1 -10
View File
@@ -2,15 +2,6 @@ import type { InjectorConfig, ShellConfig, ShellToolConfig } from "@/types/memsh
import type { ProbeConfig, ProbeContentConfig } from "@/types/probeshell";
import type { MemShellFormSchema, ProbeShellFormSchema } from "@/types/schema";
const SPRING_GZIP_JDK17_RELATED_PACKERS = new Set([
"SpEL",
"SpELSpringGzipJDK17",
"OGNL",
"OGNLSpringGzipJDK17",
"JXPath",
"JXPathSpringGzipJDK17",
]);
const UPPERCASE_LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
const CLASS_NAME_LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
@@ -31,7 +22,7 @@ function generateSpringExpressionInjectorClassName() {
}
function isSpringGzipJdk17RelatedPacker(packer: string) {
return SPRING_GZIP_JDK17_RELATED_PACKERS.has(packer);
return packer.endsWith("SpringGzipJDK17");
}
export function transformToPostData(formValue: MemShellFormSchema) {