-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
移除 MybatisSqlSessionFactoryBean.java 中的 NestedIOException #4552
Comments
等myabtis-soring发新版后并且我们有发版计划的时候 |
不能先发个SNAPSHOT吗 |
项目在新环境拉取了一遍依赖, 已经开始爆炸了 🎉 <parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.0-M4</version>
<relativePath/>
</parent>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.2</version>
</dependency>
|
可选方案之一是自己创建一个 package org.springframework.core;
public class NestedIOException extends Exception
{
public NestedIOException()
{
super();
}
public NestedIOException(String message)
{
super(message);
}
public NestedIOException(String message, Throwable cause)
{
super(message, cause);
}
public NestedIOException(Throwable cause)
{
super(cause);
}
protected NestedIOException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
{
super(message, cause, enableSuppression, writableStackTrace);
}
} 简单测试, 可以正常启动并使用各数据库 API. |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mybatis-plus/mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/spring/MybatisSqlSessionFactoryBean.java
Line 52 in 4651cea
在新版本的 Spring 以及 Mybatis-Spring 中,NestedIOException 已被移除,直接使用 IOException 替代,见 mybatis/spring#663
请问mybatis-plus 将会计划在何时兼容这一举措呢?
The text was updated successfully, but these errors were encountered: