启动Bldex-Linkls报错MyBatisPlus

Blade 未结 1 31

一、该问题的重现步骤是什么?

1. 配置了Bladex-Links的blade-service

2. 启动bladex-links

3.


二、你期待的结果是什么?实际看到的又是什么?

q期待看到是启动成功,实际是MybatisPlus报错提示Error creating bean with name 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration': Cannot invoke "com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties$CoreConfiguration.getLogImpl()" because "configuration" is null

image.png

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

启动Bladex-Links,运行在windows11

四、请提供详细的错误堆栈信息,这很重要。

2025-01-09 10:22:21.855 ERROR 3752 --- [           main] o.s.boot.SpringApplication               : Application run failed


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration': Cannot invoke "com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties$CoreConfiguration.getLogImpl()" because "configuration" is null

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1806)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)

at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:971)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:625)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149)

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:49)

at org.springblade.device.simulator.DeviceSimulatorApplication.main(DeviceSimulatorApplication.java:43)

Caused by: java.lang.NullPointerException: Cannot invoke "com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties$CoreConfiguration.getLogImpl()" because "configuration" is null

at org.springblade.core.mp.config.MybatisPlusConfiguration.lambda$mybatisPlusPropertiesCustomizer$0(MybatisPlusConfiguration.java:120)

at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration.lambda$afterPropertiesSet$0(MybatisPlusAutoConfiguration.java:156)

at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration.afterPropertiesSet(MybatisPlusAutoConfiguration.java:156)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1802)

... 16 common frames omitted

image.png

image.png五、若有更多详细信息,请在下面提供。

1条回答
  • 更新下BladeX-Links工程的master分支,然后下载这个工程:https://gitee.com/smallc/blade-tool,本地根目录执行mvn clean install 。


    另外请给我们邮箱:bladejava@qq.com 发一个邮件提供授权公司名,登记为商业账号后方可进行商业版问题答疑。


    作者追问:12小时前

    有商业版专门答疑吗

    0 讨论(0)
提交回复