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>