我的后台是Values的,是我粘贴的时候弄掉了,即
String sql = " INSERT INTO NEWS( TITLE , MAINBODY , AUTHOR  , PUBLISHDATE ) VALUES(  ? , ? ,? , ? ); ";
Connection connection = null;
PreparedStatement preparedStatement = null;
connection = JdbcUtils.getConnection();
preparedStatement = connection.prepareStatement(sql);
preparedStatement.setString(1, newBean.getTitle());
preparedStatement.setString(2, newBean.getMainBody());
preparedStatement.setString(3, newBean.getAuthor());
preparedStatement.setDate(4, new Date(new java.util.Date()
.getTime()));preparedStatement.executeUpdate();