首页 > 移动平台 > 详细

Could not resolve resource location pattern [classpath:com/****/mappers/*.xml]: class path resource [com/****/mappers/] cannot be resolved to URL because it does not exist的问题

时间:2019-09-10 23:55:26      阅读:654      评论:0      收藏:0      [点我收藏+]

这里建议先去看看路径的问题,看看application.xml的里面的导入的相应的配置文件的路径有没有问题,如下:

技术分享图片

 

 再者看看相应的注解有没有加上,service和controller等的注解

如果再不行,在pon.xml文件加上下面的:

<build>
<resources>
<!--编译之后包含xml-->
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>

然后在reimport下:

技术分享图片

 

Could not resolve resource location pattern [classpath:com/****/mappers/*.xml]: class path resource [com/****/mappers/] cannot be resolved to URL because it does not exist的问题

原文:https://www.cnblogs.com/share-record/p/11503869.html

(2)
(2)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!