我是spring程序员的新手,我刚刚阅读了springs mvc 3.0概念。我尝试在springs中编写我的第一个代码,但是在删除编译时错误时遇到了问题。这些行上显示了错误
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.support.SessionStatus;
显示的错误是
The import org.springframework.beans.factory.annotation.Autowired cannot be resolved
与其他
import
相同我认为我的文件位置合适
所有的jar文件都放置为
我无法思考这个问题
最佳答案
如果您想在Spring中编写一些应用程序并了解其工作原理,则可以下载spring工具套件并遵循此教程:
http://manueljordan.wordpress.com/2011/12/12/creating-a-spring-web-mvc-project-with-springsource-tool-suite/
关于hibernate - 消除编译时错误的问题-Springs MVC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18296096/