feat: add spring support

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-05-26 15:53:41 +08:00
parent 58478116c6
commit 72bd6b4c9c
15 changed files with 333 additions and 40 deletions

View File

@ -80,6 +80,11 @@ function detectServer(): constants.ServerType {
return constants.ServerType.Bungee
} catch (ex) {
}
try {
Java.type("org.springframework.boot.SpringApplication")
return constants.ServerType.Spring
} catch (ex) {
}
throw Error('Unknow Server Type...')
}