- 问题背景:
使用IDEA创建spring项目时,编写了spring的配置文件,创建对象后没有自动的和类进行关联 - 问题分析:
字面意思时为这个文件配置应用上下文失败,应该是在上下文设置中寻找解决方法 - 解决方法:
打开idea,然后在左上角点开File→settings
搜索框中输入Context,侧边栏选中Spring,然后右边选中Allow auto-configure application contexts
使用spring时配置文件提示Application context not configured for this file 永久解决
最新推荐文章于 2024-11-04 20:20:26 发布