日常小错

来源:互联网 发布:知乎 恩牛网络 编辑:程序博客网 时间:2024/03/29 05:53

错误1 ,一下尽管参数看似相同,但实际上是完全不同的函数,注意!当得不到结果的时候不妨看看

public Student queryUser(Long id);public Student queryUser(long id);


错误2

The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced 

由于未导入spring-tx.jar

 

错误3

Error creating bean with name 'org.springframework.web.servlet.view.json.MappingJacksonJsonView defined in class path resource [springmvc.xml]: Could not resolve matching constructor 

本身想要在springmvc 中以xml视图返回结果,但出此bug。原因:绑定的bean上未加@XmlRootElement

0 0
原创粉丝点击