2016年12月19日

查询框实现无点击事件时默认颜色,点击时清空查询空,失去焦点且查询匡为空时还原默认状态

摘要: $("#search").focus(function(){ $(this).css("color","black");//点击后黑色 $(this).addClass("focus"); if($(this).val() ==this.defaultValue){ $(this).... 阅读全文

posted @ 2016-12-19 19:54 ckx0709 阅读(235) 评论(0) 推荐(0) 编辑

Expected one result (or null) to be returned by selectOne(), but found 2

摘要: 这个问题在于你查询sql返回结果是多个值、一个集合,但是你在service的实现层的dao都调用了.get方法。而是应该使用.getlist方法等。 阅读全文

posted @ 2016-12-19 19:50 ckx0709 阅读(491) 评论(0) 推荐(0) 编辑

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

摘要: 控制台包空指针后跟这个异常,是因为控制层调用service时的失败,无法读到sql,问题在于controller在引入的service没有自动装配,在引入多个service时,每个service都要自动装配,不能只有一个@autowired后跟多个service。每一个service都要@autow 阅读全文

posted @ 2016-12-19 19:39 ckx0709 阅读(2727) 评论(0) 推荐(0) 编辑

导航