我是靠谱客的博主 谨慎中心,最近开发中收集的这篇文章主要介绍com.baomidou.mybatisplus.autoconfigure.IdentifierGeneratorAutoConfiguration$InetUtilsAutoConfig.iden,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
报错日志:
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
com.baomidou.mybatisplus.autoconfigure.IdentifierGeneratorAutoConfiguration$InetUtilsAutoConfig.identifierGenerator(IdentifierGeneratorAutoConfiguration.java:44)
The following method did not exist:
com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator.<init>(Ljava/net/InetAddress;)V
The calling method's class, com.baomidou.mybatisplus.autoconfigure.IdentifierGeneratorAutoConfiguration$InetUtilsAutoConfig, was loaded from the following location:
jar:file:/E:/software/JarLocalRepository/com/baomidou/mybatis-plus-boot-starter/3.5.1/mybatis-plus-boot-starter-3.5.1.jar!/com/baomidou/mybatisplus/autoconfigure/IdentifierGeneratorAutoConfiguration$InetUtilsAutoConfig.class
The called method's class, com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator, is available from the following locations:
jar:file:/E:/software/JarLocalRepository/com/baomidou/mybatis-plus-core/3.3.0/mybatis-plus-core-3.3.0.jar!/com/baomidou/mybatisplus/core/incrementer/DefaultIdentifierGenerator.class
The called method's class hierarchy was loaded from the following locations:
com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator: file:/E:/software/JarLocalRepository/com/baomidou/mybatis-plus-core/3.3.0/mybatis-plus-core-3.3.0.jar
Action:
Correct the classpath of your application so that it contains compatible versions of the classes com.baomidou.mybatisplus.autoconfigure.IdentifierGeneratorAutoConfiguration$InetUtilsAutoConfig and com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator
2022-04-21 23:25:01.937
WARN 10296 --- [
Thread-12] c.a.nacos.common.notify.NotifyCenter
: [NotifyCenter] Start destroying Publisher
2022-04-21 23:25:01.937
WARN 10296 --- [
Thread-5] c.a.n.common.http.HttpClientBeanHolder
: [HttpClientBeanHolder] Start destroying common HttpClient
2022-04-21 23:25:01.937
WARN 10296 --- [
Thread-12] c.a.nacos.common.notify.NotifyCenter
: [NotifyCenter] Destruction of the end
2022-04-21 23:25:01.937
WARN 10296 --- [
Thread-5] c.a.n.common.http.HttpClientBeanHolder
: [HttpClientBeanHolder] Destruction of the end
Disconnected from the target VM, address: '127.0.0.1:59176', transport: 'socket'
Process finished with exit code 1
原因:mybatis-plus-boot-starter和mybatis-plus-generator版本号不一致导致的。
解决:将mybatis-plus-boot-starter和mybatis-plus-generator版本号改成一样就行了。
比如
<!-- Mybatis-Plus 依赖配置 -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.1</version>
</dependency>
<!--
mybatis-plus代码生成器
-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>3.3.1</version>
</dependency>
最后
以上就是谨慎中心为你收集整理的com.baomidou.mybatisplus.autoconfigure.IdentifierGeneratorAutoConfiguration$InetUtilsAutoConfig.iden的全部内容,希望文章能够帮你解决com.baomidou.mybatisplus.autoconfigure.IdentifierGeneratorAutoConfiguration$InetUtilsAutoConfig.iden所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复