我目前正在学习一个教程(http://kristantohans.wordpress.com/2010/03/01/new-to-jasperreport-build-your-first-impressive-application-part-2/),他使用一个java数据库连接 (conn)
50 try {
51 //Fill the report with parameter, connection and the stream reader
52 JasperPrint jp = JasperFillManager.fillReport(is, null, conn);
我怎样才能在这里连接到 mongo ?因为有了 mongo 我有:
Mongo m = new Mongo( "localhost" , 27017 );
DB db = m.getDB( "test" );
和
JasperPrint jp = JasperFillManager.fillReport(is, null, m);
不工作
谢谢 !