我刚刚在Solus Linux OS上安装了Genymotion.
第一个问题解决了:Genymotion - /usr/lib64/libX11.so.6:未定义的符号:xcb_wait_for_reply64 现在我遇到了这个问题.
任何人对此有任何想法或以前见过这个?
public void insert(Post post){
String insertString = "INSERT INTO posts(id, title) VALUES(" + post.getId() + ", \"" + post.getTitle() + "\" + ");";
jdbcTemplate.batchUpdate(insertString);
jdbcTemplate.update(insertString);
}
Run Code Online (Sandbox Code Playgroud)
应该使用哪一个,为什么?