如何传递多个参数jdbcTemplate queryForInt以获取计数.我试过这个,
Integer count = this.jdbcTemplate
.queryForInt("select count(name) from table_name where parameter1 = ? and parameter2 = ?", new Object[]{parameter1,parameter2});
Run Code Online (Sandbox Code Playgroud)
但它表现queryForInt为罢工.
有没有办法在JSP + java中使用jQuery上传multipart文件.在jQuery AJAX中执行时出错.
$.ajax({
type: "POST",
url: "${pageContext.request.contextPath}/users/imageUpload/" + $imageUpload + "/" + $userId??,
contentType: "multipart/form-data",
processData: false,
}).done(function(data) {}).fail(function(data) {
alert("Ooopss..! Something Bad Happened.!");
});
Run Code Online (Sandbox Code Playgroud)