ssm整合是出现:Property 'configuration' and 'configLocation' can not specified with together的解决

在ssm整合配置mybatis的时候:出现 不能创建sqlSessionFactory,原因是:Property ‘configuration’ and ‘configLocation’ can not specified with together;
意思是configuration 和 configLocation 不能同时存在 也就是说:在spring的配置文件指定了mybatis的配置文件 就不能在spring的配置里面写入mybatis的配置,所以报错。
就是下面红框框这样,配置了这个mybatis-config.xml就不能再在application.properties文件中配置有关mubatis的属性了。
ssm整合是出现:Property 'configuration' and 'configLocation' can not specified with together的解决_第1张图片

你可能感兴趣的:(mybatis)