配置阿里云镜像之后依然从中央仓库下载镜像的问题解决方案,解决方案的前提是已经在maven中配置好了阿里云镜像。

在maven的pom.xml中配置如下:

<repositories>
    <repository>
        <id>nexus-aliyun</id>
        <name>nexus-aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>

SpringBoot 报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com....

BookMapper 要和 BookMapper.xml 放在同一个文件夹下,同时需要在 pom.xml 中添加:

<build>      
    <resources>          
        <resource>               
            <directory>src/main/java</directory>               
            <includes>                   
                <include>**/*.xml</include>            
            </includes>
        </resource>
    </resources>
</build>

https://blog.csdn.net/sundacheng1989/article/details/81630370

Last modification:July 15, 2021
如果觉得我的文章对你有用,请随意赞赏