关于idea2023版的springboot4+系列的兼容问题

本人学习到javaweb(黑马 maybatiis)的时候选的springboot的最新版的4.0.3版本,照着视频打知道执行的时候一直报错
Exception in thread "main" java.lang.NoSuchMethodError: 'java.lang.String org.junit.platform.engine.discovery.MethodSelector.getMethodParameterTypes()'

at com.intellij.junit5.JUnit5TestRunnerUtil.loadMethodByReflection(JUnit5TestRunnerUtil.java:127)

at com.intellij.junit5.JUnit5TestRunnerUtil.buildRequest(JUnit5TestRunnerUtil.java:102)

at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:43)
gemini告诉我可能是junit版本的问题,但是我后面发现修改不了,后面才注意到旧版本的idea不支持新版本的springboot 4框架,才会爆这样的错误
后面把版本降下来才可以跑的通,这让我注意到各个版本的兼容性的问题。老版本的话还是使用springboot 3框架比较稳定些
2026.3.3

posted @ 2026-03-04 13:22  氟西汀zZ  阅读(0)  评论(0)    收藏  举报