待整理

ConvertFactory cf = new DozerConvertFactory(); // 转换
User user1 = cf.convert(user, User.class);




attempted to return null from a method with a primitive return type (double)

mapper中的SQL

select sum(invest) from db
invest 为空 ,异常的意思是返回一个null,并SUM
改正:
select IFNULL(sum(invest),0) FROM DB



No matching bean of type dao found for depende

通常:impl 实现 Service 的接口 ,未添加 @Service 标签
今天的异常是,在 impl 的 class 前添加了 abstract 所以导致了上面的问题
估计是在写方法时,没有写实现,所以系统提示改为 abstract 类,就点击了提示



client error
publish 重新发布工程,在Tomcat 上重新编译

publish:是将你的web程序发布到tomcat服务器上,这样通过浏览器就可以访问你的程序。
clean:是指原先编译到tomcat服务器上的程序,先清除掉,然后再重新编译。
代码变动,需要clean 后才会生效

猜你喜欢

转载自mingyundezuoan.iteye.com/blog/2371062