刚刚编码试了一下,也是一样的问题
Connection conn = null;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn = DriverManager.getConnection("jdbc:mysql://10.40.57.190:
8066/MR_CZ?user=mr&password=mr");
PreparedStatement cStmt = conn.prepareStatement("/!mycat:sql=select 1
from MRO/{call mroPciMod3()}");
boolean hadResults = cStmt.execute();
System.out.println(hadResults);
} catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} finally {
if (conn != null) {
try {
conn.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
我再试试其它的注解方式
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1071 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAcmsSheidzqV2MDxoB_FMUSjcstCHVKks5qim1qgaJpZM4Jp-Bh
.