Mapped Statements collection does not contain value for 解决

Mapped Statements collection does not contain value for 解决

经过很长时间的排查,xml的劲射文件没有在编译好的资源文件中,所以找不到。

一个很大的坑,就是在写映射文件的时候需要加入pom.xml的build中resources

<build>
    <resources>
        <resource>
            <directory>src/main/resourcesdirectory>
            <includes>
                <include>**/*.propertiesinclude>
                <include>**/*.xmlinclude>
            includes>
            <filtering>falsefiltering>
        resource>
        <resource>
            <directory>src/main/javadirectory>
            <includes>
                <include>**/*.propertiesinclude>
                <include>**/*.xmlinclude>
            includes>
            <filtering>falsefiltering>
        resource>
    resources>
  
build>

你可能感兴趣的:(java)