0
点赞
收藏
分享

微信扫一扫

IDEA配置SSM中遇到的若干问题

small_Sun 2022-03-12 阅读 54

1.java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened becaus

原因,找不到配置文件,可能是由于在pom.xml文件中配置了

独立的项目被识别成了父工程

解决方法,删掉即可

2.Error creating bean with name"defined in file[......]:Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'

3.ALT+Insert失效

Setting——Editor——intention——Refactorings——Inteoduce local variable打对钩

 4.IDEA光标变粗的问题

一般是由于误触insert按键导致光标变化,按insert按键切换回来即可

网上我也查到了其他解决办法: file  → settings → editor → appearance  里面 将 use block caret   前面的勾去掉即可

5.Unsatisfied dependency expressed through field 'mallOrdersService'

出现这种问题有可能是没有做好注解,添加即可

也有可能是导包出现了问题,版本不对或者是依赖没导入,我重新导完包之后问题就解决了

6. class path resource [org.spring/applicationContext.xml] cannot be opened because it does not exist

是配置路径出现了错误

 即可加“*”的目的是在整个项目中查找文件

7.

举报

相关推荐

0 条评论