Druid配置达梦数据库时:java.sql.SQLSyntaxErrorException: Table ‘hydro.sw_stationbase’ doesn’t exist"

在这里插入图片描述

原因

在Springboot集成Druid、Mybatis-plus时配置达梦数据库多数据源时,没有针对达梦数据库配置SQL会话配置。
在这里插入图片描述

解决方案

在MybatisPlusConfig配置文件中添加sqlSessionFactoryDaMeng1()方法并建添加到数据源动态会话中。

Logo

一站式 AI 云服务平台

更多推荐