Hibernate MVC中消除编译时错误的问题
我是一名springs编程新手,刚刚阅读完springs mvc 3.0概念。我尝试在springs中编写我的第一个代码,但在删除编译时错误方面遇到了问题。错误显示在下面几行Hibernate MVC中消除编译时错误的问题,hibernate,spring-mvc,compiler-errors,Hibernate,Spring Mvc,Compiler Errors,我是一名springs编程新手,刚刚阅读完springs mvc 3.0概念。我尝试在springs中编写我的第一个代码,但在删除编译时错误方面遇到了问题。错误显示在下面几行 import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.propertyeditors.CustomDateEditor; import org.springframework.stere
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
对于其他导入
我认为我的文件放置是正确的
所有jar文件都被放置为
我无法思考这个问题如果您想在spring中编写一些应用程序并了解其工作原理,您可以下载spring工具套件并遵循本教程:
注1:如果您使用的是Linux系统,您应该org.spring.framework.xxx-Sources jars 注2:如果您使用的是Windows系统,则应使用org.spring.framework.xxx-Releases jars 希望这对你有帮助 有关注意事项,您可以参考: