1、如果mapper接口与mapper.xml不在同一级目录下需要在yml或者properties文件下配置mapper.xml文件的路径
mybatis:
mapper-locations: classpath:mybatis/*.xml
configuration:
cache-enabled: false
1、如果mapper接口与mapper.xml不在同一级目录下需要在yml或者properties文件下配置mapper.xml文件的路径
mybatis:
mapper-locations: classpath:mybatis/*.xml
configuration:
cache-enabled: false