开发者社区> 问答> 正文

java工程融合spring和hibernate框架之后,打成jar包问题?报错

java工程融合spring和hibernate框架之后,通过eclipse打成jar包之后,

在linux系统中执行该jar,application-context 文件里面sessionFactory 配置的packagesToScan

无法加载下面的bean


报错如下:WARN PathMatchingResourcePatternResolver: Cannot search for matching files underneath URL [rsrc:com/loader/model/] because it does not correspond to a directory in the file system
java.io.FileNotFoundException: URL [rsrc:com/loader/model/] cannot be resolved to absolute file path because it does not reside in the file system: rsrc:com/loader/model/


展开
收起
爱吃鱼的程序员 2020-06-09 14:42:38 959 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    请问怎么解决的这个

    2020-06-09 14:42:57
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Spring Cloud Alibaba - 重新定义 Java Cloud-Native 立即下载
The Reactive Cloud Native Arch 立即下载
JAVA开发手册1.5.0 立即下载