Invalid bound statement (not found): com.example.mubatis_plus.mapper.UserMapper.selectAll 問題解決:pom添加
Invalid bound statement (not found): com.example.mubatis_plus.mapper.UserMapper.selectAll
問題解決:pom添加
<build>
? ? ? ? <resources>
? ? ? ? ? ? <resource>
? ? ? ? ? ? ? ? <!--? ?描述存放資源的目錄,該路徑相對POM路徑-->
? ? ? ? ? ? ? ? <directory>src/main/java</directory>
? ? ? ? ? ? ? ? <includes>
? ? ? ? ? ? ? ? ? ? <include>**/*.xml</include>
? ? ? ? ? ? ? ? </includes>
? ? ? ? ? ? </resource>
? ? ? ? </resources>
? ? ? ? <plugins>
? ? ? ? ? ? <plugin>
? ? ? ? ? ? ? ? <groupId>org.springframework.boot</groupId>
? ? ? ? ? ? ? ? <artifactId>spring-boot-maven-plugin</artifactId>
? ? ? ? ? ? </plugin>
? ? ? ? </plugins>
? ? </build>
2020-04-28
問題解決了就好。一般是要添加如下配置,不然有的ide不會將寫在src/main/java中的xml文件編譯或打包到編譯后的程序或者包中。
2020-04-24
按照課堂上的,是配置在application.yml文件中