Mapper icon indicating copy to clipboard operation
Mapper copied to clipboard

生成通用mapper,指定了数据库没起作用

Open ShadowWalkerByBiscuit opened this issue 5 years ago • 1 comments

有两个database,里面有名字相同的表。 在数据库链接url上面指明了时数据库二,但是最终生成的是数据库一中表的相关代码。

ShadowWalkerByBiscuit avatar Jul 28 '20 03:07 ShadowWalkerByBiscuit

@Table标签需要有nameschema两个属性; 只有一个则会被忽略 版本

 <dependency>
                <groupId>tk.mybatis</groupId>
                <artifactId>mapper-spring-boot-starter</artifactId>
                <version>2.1.5</version>
</dependency>

dezhishen avatar Jul 30 '20 03:07 dezhishen