按照网上的匹配一遍,没发现问题,最修改application.properties配置文件中mybatis.mapperLocations=classpath:mapper/*.xml
为 mybatis.mapperLocations=classpath*:mapper/*.xml
可以运行了。后来发现不是这个问题,把XML文件拉过来之后,重新build一下就可以了。
按照网上的匹配一遍,没发现问题,最修改application.properties配置文件中mybatis.mapperLocations=classpath:mapper/*.xml
为 mybatis.mapperLocations=classpath*:mapper/*.xml
可以运行了。后来发现不是这个问题,把XML文件拉过来之后,重新build一下就可以了。