下面这种配置方式是错误的
mybatis-plus:
mapper-locations: classpath:mapper/*.xml
应该在config配置中配置xml路径
@Configuration
@EnableTransactionManagement
public class MybatisPlusConfig {
@Value("${spring.datasource.url}")
private String url;
@Value("${spring.datasource.username}")
private String username;
@Value("${spring.datasource.password}")
private String password;
@Value("${spring.datasource.driver-class-name}")
private String driverClassName;
/**
*
* @return 数据源配置
* @throws SQLException
*/
@Bean
@Primary
@ConfigurationProperties(prefix = "spring.dataso