否则报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
上边配完不报错,但是调用mapper中的方法还会报错,还需要配置以下配置(yml)
mybatis-plus:
global-config:
db-config:
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
mapper-locations: classpath*:com/dxl/system/mapper/mapping/*.xml