org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

1.问题

dao层的接口 找不到 mapper层对应的xml

在这里插入图片描述
找不到
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)_第1张图片

2.解决方法

1.启动类加MapperScan

@MapperScan("com.ybj.mpm.system.authentication.dao")

2.yml配置xml位置

mybatis-plus:
  mapper-locations: classpath:com/ybj/mpm/system/authentication/mapping/*.xml

3.pom配置resource

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

你可能感兴趣的:(003.springBoot)