DebugTools
DebugTools copied to clipboard
Unrecognized VM option 'AllowEnhancedClassRedefinition'
热重载启动失败(正常启动时可以启动的) 我对比了两个启动的参数 热重载多了这个,其他的看不出来,是要删除该选项嘛?怎么删? -XX:+AllowEnhancedClassRedefinition
版本信息
- DebugTools版本: [e.g. 4.6.1]
- Jdk的版本: [21]
日志信息
D:\Desktop\Java\jdk-21\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:5372,suspend=y,server=n -agentpath:C:\Users\liyuzhen\AppData\Local\Temp\idea_libasyncProfiler_dll_temp_folder\libasyncProfiler.dll=version,jfr,event=wall,interval=10ms,cstack=no,file=C:\Users\liyuzhen\IdeaSnapshots\GatewayApplication_2026_06_02_110443.jfr,dbghelppath=C:\Users\liyuzhen\AppData\Local\Temp\idea_dbghelp_dll_temp_folder\dbghelp.dll,log=C:\Users\liyuzhen\AppData\Local\Temp\GatewayApplication_2026_06_02_110443.jfr.log.txt,logLevel=DEBUG -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-Dmanagement.endpoints.jmx.exposure.include=*" -XX:+EnableDynamicAgentLoading -XX:+AllowEnhancedClassRedefinition --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/jdk.internal.loader=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.desktop/java.beans=ALL-UNNAMED --add-opens java.desktop/com.sun.beans=ALL-UNNAMED --add-opens java.desktop/com.sun.beans.introspect=ALL-UNNAMED --add-opens java.desktop/com.sun.beans.util=ALL-UNNAMED --add-opens java.base/sun.security.action=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED -javaagent:C:\Users\liyuzhen\.debugTools\lib\debug-tools-agent-4.6.1.jar=logLevel=INFO,server=false,printSql=No,traceSql=false,hotswap=true,autoAttach=false,autoSaveSql=false,sqlRetentionDays=1,ignoreStaticFieldPath=D:\Desktop\VsCodeProjects\smart-fit\smart-fit-api\.idea\DebugTools\IgnoreStaticField\default.conf -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath "D:\Desktop\VsCodeProjects\smart-fit\smart-fit-api\smart-fit-gateway\target\classes;C:\Users\liyuzhen\.m2\repository\org\springframework\cloud\spring-cloud-starter-gateway\4.0.7\spring-cloud-starter-gateway-4.0.7.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\cloud\spring-cloud-starter\4.0.4\spring-cloud-starter-4.0.4.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\boot\spring-boot-starter\3.1.12\spring-boot-starter-3.1.12.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\boot\spring-boot\3.1.12\spring-boot-3.1.12.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\3.1.12\spring-boot-autoconfigure-3.1.12.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\boot\spring-boot-starter-logging\3.1.12\spring-boot-starter-logging-3.1.12.jar;C:\Users\liyuzhen\.m2\repository\ch\qos\logback\logback-classic\1.4.14\logback-classic-1.4.14.jar;C:\Users\liyuzhen\.m2\repository\ch\qos\logback\logback-core\1.4.14\logback-core-1.4.14.jar;C:\Users\liyuzhen\.m2\repository\org\slf4j\slf4j-api\2.0.13\slf4j-api-2.0.13.jar;C:\Users\liyuzhen\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.20.0\log4j-to-slf4j-2.20.0.jar;C:\Users\liyuzhen\.m2\repository\org\apache\logging\log4j\log4j-api\2.20.0\log4j-api-2.20.0.jar;C:\Users\liyuzhen\.m2\repository\org\slf4j\jul-to-slf4j\2.0.13\jul-to-slf4j-2.0.13.jar;C:\Users\liyuzhen\.m2\repository\jakarta\annotation\jakarta.annotation-api\2.1.1\jakarta.annotation-api-2.1.1.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\spring-core\6.0.21\spring-core-6.0.21.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\spring-jcl\6.0.21\spring-jcl-6.0.21.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\security\spring-security-rsa\1.0.12.RELEASE\spring-security-rsa-1.0.12.RELEASE.jar;C:\Users\liyuzhen\.m2\repository\org\bouncycastle\bcpkix-jdk18on\1.73\bcpkix-jdk18on-1.73.jar;C:\Users\liyuzhen\.m2\repository\org\bouncycastle\bcprov-jdk18on\1.73\bcprov-jdk18on-1.73.jar;C:\Users\liyuzhen\.m2\repository\org\bouncycastle\bcutil-jdk18on\1.73\bcutil-jdk18on-1.73.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\cloud\spring-cloud-gateway-server\4.0.7\spring-cloud-gateway-server-4.0.7.jar;C:\Users\liyuzhen\.m2\repository\io\projectreactor\addons\reactor-extra\3.5.1\reactor-extra-3.5.1.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\boot\spring-boot-starter-webflux\3.1.12\spring-boot-starter-webflux-3.1.12.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\boot\spring-boot-starter-json\3.1.12\spring-boot-starter-json-3.1.12.jar;C:\Users\liyuzhen\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.15.4\jackson-datatype-jdk8-2.15.4.jar;C:\Users\liyuzhen\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.15.4\jackson-datatype-jsr310-2.15.4.jar;C:\Users\liyuzhen\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.15.4\jackson-module-parameter-names-2.15.4.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\boot\spring-boot-starter-reactor-netty\3.1.12\spring-boot-starter-reactor-netty-3.1.12.jar;C:\Users\liyuzhen\.m2\repository\io\projectreactor\netty\reactor-netty-http\1.1.19\reactor-netty-http-1.1.19.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-codec-http\4.1.110.Final\netty-codec-http-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-common\4.1.110.Final\netty-common-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-buffer\4.1.110.Final\netty-buffer-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-transport\4.1.110.Final\netty-transport-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-codec\4.1.110.Final\netty-codec-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-handler\4.1.110.Final\netty-handler-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-codec-http2\4.1.110.Final\netty-codec-http2-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-resolver-dns\4.1.110.Final\netty-resolver-dns-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-resolver\4.1.110.Final\netty-resolver-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-codec-dns\4.1.110.Final\netty-codec-dns-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-resolver-dns-native-macos\4.1.110.Final\netty-resolver-dns-native-macos-4.1.110.Final-osx-x86_64.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-resolver-dns-classes-macos\4.1.110.Final\netty-resolver-dns-classes-macos-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-transport-native-epoll\4.1.110.Final\netty-transport-native-epoll-4.1.110.Final-linux-x86_64.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-transport-native-unix-common\4.1.110.Final\netty-transport-native-unix-common-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-transport-classes-epoll\4.1.110.Final\netty-transport-classes-epoll-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\projectreactor\netty\reactor-netty-core\1.1.19\reactor-netty-core-1.1.19.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-handler-proxy\4.1.110.Final\netty-handler-proxy-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\io\netty\netty-codec-socks\4.1.110.Final\netty-codec-socks-4.1.110.Final.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\spring-web\6.0.21\spring-web-6.0.21.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\spring-beans\6.0.21\spring-beans-6.0.21.jar;C:\Users\liyuzhen\.m2\repository\io\micrometer\micrometer-observation\1.11.12\micrometer-observation-1.11.12.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\spring-webflux\6.0.21\spring-webflux-6.0.21.jar;C:\Users\liyuzhen\.m2\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-discovery\2023.0.1.0\spring-cloud-starter-alibaba-nacos-discovery-2023.0.1.0.jar;C:\Users\liyuzhen\.m2\repository\com\alibaba\cloud\spring-cloud-alibaba-commons\2023.0.1.0\spring-cloud-alibaba-commons-2023.0.1.0.jar;C:\Users\liyuzhen\.m2\repository\com\alibaba\nacos\nacos-client\2.3.2\nacos-client-2.3.2.jar;C:\Users\liyuzhen\.m2\repository\com\alibaba\nacos\nacos-auth-plugin\2.3.2\nacos-auth-plugin-2.3.2.jar;C:\Users\liyuzhen\.m2\repository\com\alibaba\nacos\nacos-encryption-plugin\2.3.2\nacos-encryption-plugin-2.3.2.jar;C:\Users\liyuzhen\.m2\repository\commons-codec\commons-codec\1.15\commons-codec-1.15.jar;C:\Users\liyuzhen\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.15.4\jackson-core-2.15.4.jar;C:\Users\liyuzhen\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.15.4\jackson-databind-2.15.4.jar;C:\Users\liyuzhen\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.15.4\jackson-annotations-2.15.4.jar;C:\Users\liyuzhen\.m2\repository\org\apache\httpcomponents\httpasyncclient\4.1.5\httpasyncclient-4.1.5.jar;C:\Users\liyuzhen\.m2\repository\org\apache\httpcomponents\httpcore-nio\4.4.16\httpcore-nio-4.4.16.jar;C:\Users\liyuzhen\.m2\repository\org\apache\httpcomponents\httpclient\4.5.13\httpclient-4.5.13.jar;C:\Users\liyuzhen\.m2\repository\org\apache\httpcomponents\httpcore\4.4.16\httpcore-4.4.16.jar;C:\Users\liyuzhen\.m2\repository\io\prometheus\simpleclient\0.16.0\simpleclient-0.16.0.jar;C:\Users\liyuzhen\.m2\repository\io\prometheus\simpleclient_tracer_otel\0.16.0\simpleclient_tracer_otel-0.16.0.jar;C:\Users\liyuzhen\.m2\repository\io\prometheus\simpleclient_tracer_common\0.16.0\simpleclient_tracer_common-0.16.0.jar;C:\Users\liyuzhen\.m2\repository\io\prometheus\simpleclient_tracer_otel_agent\0.16.0\simpleclient_tracer_otel_agent-0.16.0.jar;C:\Users\liyuzhen\.m2\repository\org\yaml\snakeyaml\1.33\snakeyaml-1.33.jar;C:\Users\liyuzhen\.m2\repository\io\micrometer\micrometer-core\1.11.12\micrometer-core-1.11.12.jar;C:\Users\liyuzhen\.m2\repository\io\micrometer\micrometer-commons\1.11.12\micrometer-commons-1.11.12.jar;C:\Users\liyuzhen\.m2\repository\org\hdrhistogram\HdrHistogram\2.1.12\HdrHistogram-2.1.12.jar;C:\Users\liyuzhen\.m2\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;C:\Users\liyuzhen\.m2\repository\com\alibaba\spring\spring-context-support\1.0.11\spring-context-support-1.0.11.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\cloud\spring-cloud-commons\4.0.4\spring-cloud-commons-4.0.4.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\security\spring-security-crypto\6.1.9\spring-security-crypto-6.1.9.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\cloud\spring-cloud-context\4.0.4\spring-cloud-context-4.0.4.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\cloud\spring-cloud-starter-loadbalancer\4.0.4\spring-cloud-starter-loadbalancer-4.0.4.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\cloud\spring-cloud-loadbalancer\4.0.4\spring-cloud-loadbalancer-4.0.4.jar;C:\Users\liyuzhen\.m2\repository\io\projectreactor\reactor-core\3.5.17\reactor-core-3.5.17.jar;C:\Users\liyuzhen\.m2\repository\org\reactivestreams\reactive-streams\1.0.4\reactive-streams-1.0.4.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\boot\spring-boot-starter-cache\3.1.12\spring-boot-starter-cache-3.1.12.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\spring-context-support\6.0.21\spring-context-support-6.0.21.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\spring-context\6.0.21\spring-context-6.0.21.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\spring-aop\6.0.21\spring-aop-6.0.21.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\spring-expression\6.0.21\spring-expression-6.0.21.jar;C:\Users\liyuzhen\.m2\repository\com\stoyanr\evictor\1.0.0\evictor-1.0.0.jar;C:\Users\liyuzhen\.m2\repository\io\jsonwebtoken\jjwt-api\0.11.5\jjwt-api-0.11.5.jar;C:\Users\liyuzhen\.m2\repository\io\jsonwebtoken\jjwt-impl\0.11.5\jjwt-impl-0.11.5.jar;C:\Users\liyuzhen\.m2\repository\io\jsonwebtoken\jjwt-jackson\0.11.5\jjwt-jackson-0.11.5.jar;C:\Users\liyuzhen\.m2\repository\cn\hutool\hutool-all\5.8.24\hutool-all-5.8.24.jar;C:\Users\liyuzhen\.m2\repository\org\springframework\boot\spring-boot-starter-validation\3.1.12\spring-boot-starter-validation-3.1.12.jar;C:\Users\liyuzhen\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\10.1.24\tomcat-embed-el-10.1.24.jar;C:\Users\liyuzhen\.m2\repository\org\hibernate\validator\hibernate-validator\8.0.1.Final\hibernate-validator-8.0.1.Final.jar;C:\Users\liyuzhen\.m2\repository\jakarta\validation\jakarta.validation-api\3.0.2\jakarta.validation-api-3.0.2.jar;C:\Users\liyuzhen\.m2\repository\org\jboss\logging\jboss-logging\3.5.3.Final\jboss-logging-3.5.3.Final.jar;C:\Users\liyuzhen\.m2\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\Desktop\IntelliJ IDEA 2026.1.2\lib\idea_rt.jar" com.smartfit.gateway.GatewayApplication
Unrecognized VM option 'AllowEnhancedClassRedefinition'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
热重载要用指定的jdk,你的 jdk21不是 jbr,所以启动失败