spring整合mybatis错误

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: The setting logTmpl is not known. Make sure you spelled it correctly (case sensitive).
这是错误

Failed to parse config resource: class path resource [mybatis.xml];
mybatis配置有异常,logTmpl配置的地方不能解析。

mybatis.xml文件配置参数logTmpl 不认识。
logTmpl 改为logImpl

<configuration>
 
    <settings>
        <setting name="logImpl" value="NO_LOGGING"/>
    </settings>
 
</configuration>

Failed to parse config resource: class path resource [mybatis.xml];ybatis.xml没有正确在spring文件读取吧,里面有参数没有识别到,建议你将相关的配置信息xml代码发出来,不然很难解决问题,另外spring整合mybatis一般会写在一个配置文件里吧?数据库的信息单独放到最小配置文件里,你可以参考我的文章进行配置,比较详细