springboot整合mybatis报错

今日将mybatis整合进项目中后,启动后报错

Property 'configuration' and 'configLocation' can not specified with together经检查,

是因为application.yml文件的mybatis配置里。configurationconfig-location属性冲突,不能同时设置。

解决方案是把configuration写在mybatis-config.xml文件里另外注意:mybatis-config.xml文件配置 settings标签必须在typeAliases标签前面。。不然会报错。

全部评论

相关推荐

牛客848095834号:举报了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务