Spring Boot適配mybatis版本最低為3.0.3
<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>3.0.3</version> </dependency>
不然會報
java.lang.IllegalArgumentException: Invalid value type for attribute 'factoryBeanObjectType': java.lang.String at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getTypeForFactoryBeanFromAttributes(FactoryBeanRegistrySupport.java:86) ~[spring-beans-6.1.8.jar:6.1.8] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:837) ~[spring-beans-6.1.8.jar:6.1.8] at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:663) ~[spring-beans-6.1.8.jar:6.1.8] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:575) ~[spring-beans-6.1.8.jar:6.1.8] at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:534) ~[spring-beans-6.1.8.jar:6.1.8] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:138) ~[spring-context-6.1.8.jar:6.1.8] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:788) ~[spring-context-6.1.8.jar:6.1.8] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:606) ~[spring-context-6.1.8.jar:6.1.8] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.3.0.jar:3.3.0] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) ~[spring-boot-3.3.0.jar:3.3.0] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456) ~[spring-boot-3.3.0.jar:3.3.0] at org.springframework.boot.SpringApplication.run(SpringApplication.java:335) ~[spring-boot-3.3.0.jar:3.3.0] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1363) ~[spring-boot-3.3.0.jar:3.3.0] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1352) ~[spring-boot-3.3.0.jar:3.3.0] at com.yaoyao.springbootexplore.SpringbootExploreApplication.main(SpringbootExploreApplication.java:22) ~[classes/:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na] at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:50) ~[spring-boot-devtools-3.3.0.jar:3
SpringBoot3.0.x適配mybatis版本
相關文章
- Android 版本適配:9.0 Pie(API 級別 28)AndroidAPI
- Android各版本迭代改動與適配集合Android
- Android適配: 拉伸適配的缺點Android
- flutter 螢幕尺寸適配 字型大小適配Flutter
- iphoneX適配iPhone
- Android適配Android
- dimens適配
- 「實操」適配 NebulaGraph 新版本與壓測實踐
- Android 版本適配:8.x Oreo(API 級別 26、27)AndroidAPI
- Android螢幕適配(理論適配100%機型)Android
- 螢幕適配
- WebView iPhoneX適配WebViewiPhone
- iphoneX,XsMax適配iPhone
- 裝置適配
- 適配問題
- android螢幕適配三:通過畫素密度適配Android
- pc大屏適配
- Flutter螢幕適配Flutter
- Flutter深色模式適配Flutter模式
- 移動端適配
- rem 適配佈局REM
- h5適配H5
- Android圖示適配Android
- Rem 等比適配始末REM
- AutoLayout螢幕適配
- 關於字型適配
- android 螢幕適配Android
- android全面屏適配Android
- Android P 適配指南Android
- 新版本系統適配: Android 12 中的相容性變更Android
- iOS微信更新6.7.4版本:適配iPhone XS MAX大螢幕iOSiPhone
- (原創)高DPI適配經驗系列:(四)高DPI適配示例
- Unity適配iPhone X---關於Home鍵指示器適配UnityiPhone
- 應用適配資料庫還是資料庫適配應用資料庫
- (原創)高DPI適配經驗系列:(二)按DPI範圍適配
- Flutter適配深色模式(DarkMode)Flutter模式
- Android中的icon適配Android
- viewport移動端適配View