解决myeclipes : Assert cannot be resolved, Autowired cannot resolved to a type问题
2016-10-12 15:54
691 查看
解决myeclipes 中
1. Assert cannot be resolved,
2.Autowired cannot resolved to a type 问题。
解决了我新建web工程时WebRoot 改为 webapp后没有Web App Libraries后出现的故障
![](http://img.blog.csdn.net/20161012155007322)
参考这个哥们的————————————-
最近在做Web 项目时,新建了一个WEB 项目,如webdemo ,eclipse默认的build路径为build, WEB-INF存放于WebContent下面,今改了一个build路径和WebContent名字,发现项目不可用了,
具体修改过程过,把WebContent 改为 WebRoot
把build路径从build/classes 改为 webdemo/WebRoot/WEB-INF/classes
在修改之前原存放于lib下的jar包都存于eclipse项目的Libraries/Web App Libraries 目录下面,改后,Web App Libraries 变为空了,而且Tomcat6.x在启动的时候也识别不了了。研究了一下午,终于找出问题所在,今天特发出来,以供后来的朋友参照。
我们打开所建项目目录,在根目录下面有一.settings \ org.eclipse.wst.common.component 文件,
在刚新建一个项目时,此文件下面的内容如下:
1. Assert cannot be resolved,
2.Autowired cannot resolved to a type 问题。
解决了我新建web工程时WebRoot 改为 webapp后没有Web App Libraries后出现的故障
参考这个哥们的————————————-
最近在做Web 项目时,新建了一个WEB 项目,如webdemo ,eclipse默认的build路径为build, WEB-INF存放于WebContent下面,今改了一个build路径和WebContent名字,发现项目不可用了,
具体修改过程过,把WebContent 改为 WebRoot
把build路径从build/classes 改为 webdemo/WebRoot/WEB-INF/classes
在修改之前原存放于lib下的jar包都存于eclipse项目的Libraries/Web App Libraries 目录下面,改后,Web App Libraries 变为空了,而且Tomcat6.x在启动的时候也识别不了了。研究了一下午,终于找出问题所在,今天特发出来,以供后来的朋友参照。
我们打开所建项目目录,在根目录下面有一.settings \ org.eclipse.wst.common.component 文件,
在刚新建一个项目时,此文件下面的内容如下:
相关文章推荐
- Servlet问题:servlet cannot be resolved to a type解决办法
- eclipse import的项目报autowired cannot be resolved to a type的错误
- (1.)javaweb问题解决之Httpservlet cannot be resolved to a type的原因与解决方法
- Servlet问题:servlet cannot be resolved to a type解决办法
- 解决JSP中,类无法被编译的问题(XX cannot be resolved to a type)
- 【问题解决】Httpservlet cannot be resolved to a type的原因与解决方法
- 关于“JSONObject cannot be resolved to a type”问题的解决
- cannot be resolved to a type in same package 问题解决
- eclipse中报错:cannot be resolved to a type的问题如何解决?
- 解决 Class<SpringJUnit4ClassRunner> cannot be resolved to a type 问题
- javax.servlet.jsp.PageContext cannot be resolved to a type问题如何解决???
- 解决JSP中,类无法被编译的问题(XX cannot be resolved to a type)
- jsp页面出现“String cannot be resolved to a type”错误解决办法
- "XX cannot be resolved to a type "eclipse报错及解决
- android开发出现R cannot be resolved to a variable 问题解决办法之一
- servlet cannot be resolved to a type解决办法
- Button cannot be resolved to a type 解决方法
- 解决使用Maven,代码正确却发生大量类文件cannot be resolved to a type的情况
- Httpservlet cannot be resolved to a type的原因与解决方法
- ProcessEngine cannot be resolved to a type解决办法