在配置MySQL数据源的时候,使用mybati指定配置文件的位置,通过
new PathMatchingResourcePatternResolver().getResource("classpath:mapper/*.xml")
读取mapper下的配置文件时,提示找不到该文件
代码如图
报错信息
配置文件
在配置MySQL数据源的时候,使用mybati指定配置文件的位置,通过
new PathMatchingResourcePatternResolver().getResource("classpath:mapper/*.xml")
读取mapper下的配置文件时,提示找不到该文件
代码如图