The constructor ClassPathXmlApplicationContext(String) refers to the missing type
来源:互联网 发布:51单片机引脚 编辑:程序博客网 时间:2024/04/29 18:30
The constructor ClassPathXmlApplicationContext(String) refers to the missing type
首次学习Spring Framework,通过Maven加入如下依赖:
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.1.6.RELEASE</version> </dependency>
然后写一个简单的Hello World,准备从配置文件中得到Bean,出现如下错误:
“The constructor ClassPathXmlApplicationContext(String) refers to the missing type BeansException”
原因是虽然加入spring-core,spring-beans等依赖包,但是却没有正确的下载,可以点击发现下面没有对应的package,所以手动进入repository删除对应目录,让它重新更新!
这样就OK了!
1 0
- The constructor ClassPathXmlApplicationContext(String) refers to the missing type
- type Signature refers to the missing type String
- The method contains(CharSequence) from the type String refers to the missing type CharSequence错误解决方法
- The method contains(CharSequence) from the type String refers to the missing type CharSequence错误解决方法
- The method update(String, Object...) from the type JdbcTemplate refers to the missing type DataAcces
- the method getcontextpath() from the type httpservletrequest refers to the missing type string
- JSP页面中的request.getContextPath()出现“ .... .. refers to the missing type String”错误
- JSP页面中的request.getContextPath()出现“ .... .. refers to the missing type String”错误 .
- JSP页面中的request.getContextPath()出现“ .... .. refers to the missing type String”错误
- 安卓编程中的部分函数出现“ .... .. refers to the missing type String”错误
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method xxx from the type xxxxx refers to the missing type .的处理
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method read(CharBuffer) from the type Reader refers to the missing type CharBuffer
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method read(CharBuffer) from the type Reader refers to the missing type CharBuffer
- 黑马程序员---Vector、ArrayList、LinkedList、HashMap、TreeMap、HashTable 区别
- android屏幕常亮
- Web代理服务器nginx在linux中的使用
- AutoLayout Swift demo
- HTML5技术之图像处理:一个滑动的拼图游戏(转)
- The constructor ClassPathXmlApplicationContext(String) refers to the missing type
- java处理excel文件
- ubuntu14.10安装搜狗输入法 中文输出错乱解决方案
- SQL2008 创建定时任务作业
- Deep Learning(深度学习)
- Toolbar_ActionBar
- char* 和char[]的区别
- 221.Maximal Square
- 第三方登录流程图