老师 我想问一下 我在创建xml 的时候没有spring configu 这是什么问题

老师 我想问一下 我在创建xml 的时候没有spring configu 这是什么问题

http://img1.sycdn.imooc.com//climg/5d624de700015a5416601618.jpg

如题图,我配置了spring-context 在spring.xml里面

正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

3回答
宝慕林5089642 2019-08-26 10:47:27

https://mp.csdn.net/postedit/100072978

这个问题我前几天遇见啦,解决方法写在了这个文章中!

好帮手慕阿满 2019-08-25 18:52:07

建议同学参考这个问答:http://class.imooc.com/course/qadetail/148051

祝:学习愉快~

好帮手慕阿满 2019-08-25 18:22:13

同学你好,当在pom文件中引入spring的依赖后,创建xml时就会有spring Config。

如果我的回答解决了你的疑惑,请采纳。祝:学习愉快~

  • <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>4.2.4.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>4.2.4.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-expression</artifactId> <version>4.2.4.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.2.4.RELEASE</version> </dependency> <dependency> <groupId>aopalliance</groupId> <artifactId>aopalliance</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> <version>4.2.4.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>4.2.4.RELEASE</version> </dependency> </dependencies> 以上是我的依赖安装,没有反应
    2019-08-25 18:25:27
  • 刷新右侧Maven/Dependencies
    2019-08-26 10:48:10
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师