[英]System.out.println doesn't work on client side
System.out.println("blabla");
on client side doesn't show anything on console, but the same command on server side works correctly! 在客户端,控制台上没有显示任何内容,但是在服务器端,相同的命令可以正常工作!
This is the code 这是代码
System.out.println("blabla");
// Add auto on db
for(final AutoDTO i : auto){
RonfService.addAuto(i, new AsyncCallback<AutoDTO>(){
....
....
}
"blabla"
doesn't appear on consolle, but System.out.println("add");
"blabla"
没有出现在控制台上,但是System.out.println("add");
on addAuto
method does 在
addAuto
方法上
This is the code of addAuto
: 这是
addAuto
的代码:
@Override
public AutoDTO addAuto(AutoDTO autoDTO){
System.out.println("add");
Auto auto = new Auto(autoDTO);
Session session = HibernateUtil.getSessionFactory().getCurrentSession();
...
}
Looks like you're using GWT. 看起来您正在使用GWT。 Are you running the application from within Eclipse (Dev Mode), or have you built the application and deployed it onto a server (Production Mode)?
您是从Eclipse(开发模式)中运行应用程序,还是已构建应用程序并将其部署到服务器上(生产模式)? Calls to
System.out.println()
will work in Dev Mode, but not in Production Mode. 对
System.out.println()
调用将在开发模式下工作,但在生产模式下不行。
To use logging in Production Mode, have a read of the GWT logging guide . 要在生产模式下使用日志记录,请阅读GWT日志记录指南 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.