项目在本地运行正常,打包后就出现这个异常,我就拿了门了,搞了好久才解决
我原先的配置文件
mybatis-plus.mapper-locations=classpath:mapper/**
然后我改为
mybatis-plus.mapper-locations=classpath:mapper/*.xml
就可以了,是不是有点莫名其妙啊
我猜测是在打包的过程中生成了一些其他文件在mapper文件夹下,出现了未知资源所以报错了
项目在本地运行正常,打包后就出现这个异常,我就拿了门了,搞了好久才解决
我原先的配置文件
mybatis-plus.mapper-locations=classpath:mapper/**
然后我改为
mybatis-plus.mapper-locations=classpath:mapper/*.xml
就可以了,是不是有点莫名其妙啊
我猜测是在打包的过程中生成了一些其他文件在mapper文件夹下,出现了未知资源所以报错了