thee
38
2021-04-28 17:12:01
1
88

vo null request null


갑자기 다 null로받아와서 

기능들이 다안되는데 뭐가문제일까요

 어제까진 다됐습니다..ㅠ



vooooo->null
request--->null
상품insertService
2021-04-28 17:10:17,754 DEBUG [egovframework.rte.psl.orm.ibatis.SqlMapClientTemplate] Opened SqlMapSession [com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl@680c6e5] for iBATIS operation
2021-04-28 17:10:17,754 DEBUG [java.sql.Connection] {conn-100039} Connection
2021-04-28 17:10:17,754 DEBUG [egovframework.rte.psl.orm.ibatis.SqlMapClientTemplate] Obtained JDBC Connection [Transaction-aware proxy for target Connection  from DataSource [org.apache.commons.dbcp.BasicDataSource@5f2ea472]] for iBATIS operation
2021-04-28 17:10:17,754 DEBUG [java.sql.Connection] {conn-100039} Preparing Statement:      /*shopDAO.productInsert*/     INSERT INTO SHOP     (      P_NAME      ,PRICE      ,CATEGORY      ,CONTENT      ,IMG_1      ,USER_ID      ,REG_DATE     )VALUES(      ?      ,?      ,?      ,?      ,?      ,?      ,CURRENT_TIMESTAMP()     )     
2021-04-28 17:10:17,754 DEBUG [org.springframework.jdbc.datasource.DataSourceUtils] Fetching JDBC Connection from DataSource
2021-04-28 17:10:17,754 DEBUG [org.springframework.jdbc.datasource.DataSourceUtils] Fetching JDBC Connection from DataSource
2021-04-28 17:10:17,756 DEBUG [java.sql.PreparedStatement] {pstm-100040} Executing Statement:      /*shopDAO.productInsert*/     INSERT INTO SHOP     (      P_NAME      ,PRICE      ,CATEGORY      ,CONTENT      ,IMG_1      ,USER_ID      ,REG_DATE     )VALUES(      ?      ,?      ,?      ,?      ,?      ,?      ,CURRENT_TIMESTAMP()     )     
2021-04-28 17:10:17,756 DEBUG [java.sql.PreparedStatement] {pstm-100040} Parameters: [null, 0, null, null, null, null]
2021-04-28 17:10:17,756 DEBUG [java.sql.PreparedStatement] {pstm-100040} Types: [null, java.lang.Integer, null, null, null, null]
vooooo->null
request--->null
상품insertService
2021-04-28 17:10:17,754 DEBUG [egovframework.rte.psl.orm.ibatis.SqlMapClientTemplate] Opened SqlMapSession [com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl@680c6e5] for iBATIS operation
2021-04-28 17:10:17,754 DEBUG [java.sql.Connection] {conn-100039} Connection
2021-04-28 17:10:17,754 DEBUG [egovframework.rte.psl.orm.ibatis.SqlMapClientTemplate] Obtained JDBC Connection [Transaction-aware proxy for target Connection  from DataSource [org.apache.commons.dbcp.BasicDataSource@5f2ea472]] for iBATIS operation
2021-04-28 17:10:17,754 DEBUG [java.sql.Connection] {conn-100039} Preparing Statement:      /*shopDAO.productInsert*/     INSERT INTO SHOP     (      P_NAME      ,PRICE      ,CATEGORY      ,CONTENT      ,IMG_1      ,USER_ID      ,REG_DATE     )VALUES(      ?      ,?      ,?      ,?      ,?      ,?      ,CURRENT_TIMESTAMP()     )     
2021-04-28 17:10:17,754 DEBUG [org.springframework.jdbc.datasource.DataSourceUtils] Fetching JDBC Connection from DataSource
2021-04-28 17:10:17,754 DEBUG [org.springframework.jdbc.datasource.DataSourceUtils] Fetching JDBC Connection from DataSource
2021-04-28 17:10:17,756 DEBUG [java.sql.PreparedStatement] {pstm-100040} Executing Statement:      /*shopDAO.productInsert*/     INSERT INTO SHOP     (      P_NAME      ,PRICE      ,CATEGORY      ,CONTENT      ,IMG_1      ,USER_ID      ,REG_DATE     )VALUES(      ?      ,?      ,?      ,?      ,?      ,?      ,CURRENT_TIMESTAMP()     )     
2021-04-28 17:10:17,756 DEBUG [java.sql.PreparedStatement] {pstm-100040} Parameters: [null, 0, null, null, null, null]
2021-04-28 17:10:17,756 DEBUG [java.sql.PreparedStatement] {pstm-100040} Types: [null, java.lang.Integer, null, null, null, null]
if(confirm('선택한 게시물 삭제하시겠습니까 ?')){
			$.ajax({
				contentType:"application/x-www-form-urlencoded;charset=UTF-8",
				type:"POST",
				url:"/cart_delete.do",   
				processData : true,
				data: $("#frm").serialize(),
				success:function(success){
					if(success=="Y"){
						alert("삭제완료.");
						location.reload();
					}else{
						alert("삭제실패.");	
					}
				} ,error:function(request,status,error){
				    alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
				   }

			
			});
		}



-1
0
  • 답변 1

  • spoon
    1k
    2021-04-28 17:29:09

    $("#frm").serialize() 결과를 확인해보세요

    controller부터 dao까지 data가 잘 넘어왔는지 확인해보세요


  • 로그인을 하시면 답변을 등록할 수 있습니다.