idea2023版使用Free MyBatis plugin插件报错

项目场景:

新版的idea使用Free MyBatis plugin插件报错


问题描述

错误信息

java.lang.Throwable: '#LineMarkerInfo(T, TextRange, Icon, int, Function, GutterIconNavigationHandler, Alignment)' is deprecated and going to be removed soon. Please use `LineMarkerInfo(T, TextRange, Icon, Function, GutterIconNavigationHandler, Alignment, Supplier)` instead
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:182)
	at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:105)
	at com.intellij.codeInsight.daemon.LineMarkerInfo.<init>(LineMarkerInfo.java:162)
	at com.wuzhizhan.mybatis.provider.SimpleLineMarkerProvider.getLineMarkerInfo(SimpleLineMarkerProvider.java:44)
	at com.intellij.codeInsight.daemon.impl.LineMarkersPass.queryProviders(LineMarkersPass.java:160)
	at com.intellij.codeInsight.daemon.impl.LineMarkersPass.lambdadoCollectInformationdoCollectInformation3(LineMarkersPass.java:85)
	at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot(Divider.java:115)
	at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:80)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:56)
	at com.intellij.codeInsight.daemon.impl.PassExecutorServiceScheduledPass.lambdaScheduledPass.lambdadoRun1(PassExecutorService.java:414)atcom.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1084)atcom.intellij.codeInsight.daemon.impl.PassExecutorService1(PassExecutorService.java:414)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1084)
	at com.intellij.codeInsight.daemon.impl.PassExecutorServiceScheduledPass.lambdadoRundoRun2(PassExecutorService.java:407)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambdaexecuteProcessUnderProgressexecuteProcessUnderProgress12(CoreProgressManager.java:624)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:623)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
	at com.intellij.codeInsight.daemon.impl.PassExecutorServiceScheduledPass.doRun(PassExecutorService.java:406)
	at com.intellij.codeInsight.daemon.impl.PassExecutorServiceScheduledPass.doRun(PassExecutorService.java:406)
	at com.intellij.codeInsight.daemon.impl.PassExecutorServiceScheduledPass.lambdarunrun0(PassExecutorService.java:382)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:174)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:181)
	at com.intellij.codeInsight.daemon.impl.PassExecutorServiceScheduledPass.run(PassExecutorService.java:380)
	at com.intellij.concurrency.JobLauncherImplScheduledPass.run(PassExecutorService.java:380)
	at com.intellij.concurrency.JobLauncherImplVoidForkJoinTask1.exec(JobLauncherImpl.java:184)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool1.exec(JobLauncherImpl.java:184)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPoolWorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

原因分析:

因为这个插件已经没人维护了


解决方案:

改用Free MyBatis Tool插件,地址:Free MyBatis Tool - IntelliJ IDEs Plugin | Marketplace

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
freemybatisplugin是一个用于MyBatis框架的插件,它可以简化MyBatis开发过程中的一些繁琐操作,让开发者更加高效地使用MyBatis。 要下载freemybatisplugin插件,首先需要打开浏览器,并进入freemybatisplugin的官方网站。在网站上,我们可以找到插件的下载链接。下载过程中可能需要提供一些基本的个人信息,例如邮箱地址等。 一旦下载完成,我们可以将插件文件(一般为jar文件)保存到合适的位置。接下来,需要将插件添加到我们所使用的IDE中。具体的添加方式根据不同的IDE而有所不同。 例如,对于IntelliJ IDEA这样的IDE,可以通过以下步骤添加插件: 1. 打开IDE,并进入“设置”菜单。 2. 在设置菜单中,找到“插件”选项。 3. 在插件选项中,找到“安装插件”按钮,并点击它。 4. 在弹出的文件选择窗口中,找到并选中之前下载的freemybatisplugin插件文件。 5. 点击“确定”按钮,开始安装插件。 6. 安装完成后,IDE会提示重启,点击“重启”按钮。 完成以上步骤后,freemybatisplugin插件就已经成功添加到IDE中了。接下来,我们可以在开发过程中使用插件提供的功能了。例如,插件可以帮助我们自动生成MyBatis的XML文件和Mapper接口,简化了繁琐的配置过程。 总之,通过以上步骤,我们可以方便地下载并安装freemybatisplugin插件,从而提高MyBatis开发的效率。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

涛哥是个大帅比

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值