今日将mybatis
整合进项目中后,启动后报错
Property 'configuration' and 'configLocation' can not specified with together
经检查,
是因为application.yml
文件的mybatis
配置里。configuration
和config-location
属性冲突,不能同时设置。
解决方案是把configuration
写在mybatis-config.xml
文件里另外注意:mybatis-config.xml
文件配置 settings
标签必须在typeAliases
标签前面。。不然会报错。