springboot-mybatis solve Mapper interface Mapper.xml in the same package does not compile Mapper.xml file problem

In pom.xml added the following code

<Build> 
    <plugins> 
        <plugin> 
            <the groupId> org.springframework.boot </ the groupId> 
            <the artifactId> Boot-Spring-Maven-plugin </ the artifactId> 
        </ plugin> 
    </ plugins> 

    <-! ... ... mapper file is used to scan documents dao Start ................. -> 
    <Resources> 

        <-! Mapper at compile src / main / java directory file -> 
        <Resource> 
            <Directory> the src / main / Java </ Directory> 
            <Includes> 
                <the include> ** / * .xml </ the include> 
            </ Includes> 
            <Filtering> to false </ Filtering>
        </resource>
    </resources>
    <-! Mapper for the next scan file ...... dao file End ................. -> 

</ Build>

Guess you like

Origin www.cnblogs.com/L237/p/12013747.html