hibernate - 消除编译时错误的问题-Springs MVC

标签 hibernate spring-mvc compiler-errors

我是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/

相关文章:

java - R.java 构建时出错

java - Hibernate 中 n 个表到 1 个类的运行时单向映射

java - 数据库池 - 在 Spring3 MVC 中连接到 Mysql 数据库

java - mvn jetty :run looking for a file that doesn't exist

java - 初级 boolean 编译错误

c++ - 为什么当我做一个小的改变时,我会收到错误消息说事情没有被宣布?当他们是

java - 测试使用 JPA 实现的 DAO 类

java - 在 hibernate 中为实体 bean 属性编写注释

hibernate - 意外的 token 间隔Groovy

java - Spring MVC 休息 Controller 未调用