neverko
98
2018-02-13 17:23:45
10
905

Spring 초급개발자입니다. 게시판작성중 문의드립니다.


스프링으로 게시판작성중 상세보기한후 수정처리하는 부분입니다.ㅠㅠ

이렇게 작성하니....어마어마한 에러코드가 나오네요...

xml // jsp에서 뭐가 잘못됐는지 도움받을수 있을까요?ㅠㅠ 부탁드리겠습니다.

//Error 코드

2월 13, 2018 5:01:44 오후 org.apache.catalina.core.StandardContext listenerStart
심각: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'logDaoTrx': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.neodreams.neoConference.frm.base.dao.BaseDao.dummyMethodForSettingSqlClientMap(com.ibatis.sqlmap.client.SqlMapClient); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [spring/context-datasource.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [sqlMapConfig.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: org.xml.sax.SAXParseException; lineNumber: 64; columnNumber: 85; 요소 유형 "update"에 대한 "resultMap" 속성을 선언해야 합니다.
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1073)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4852)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5313)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.neodreams.neoConference.frm.base.dao.BaseDao.dummyMethodForSettingSqlClientMap(com.ibatis.sqlmap.client.SqlMapClient); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [spring/context-datasource.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [sqlMapConfig.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: org.xml.sax.SAXParseException; lineNumber: 64; columnNumber: 85; 요소 유형 "update"에 대한 "resultMap" 속성을 선언해야 합니다.
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
	... 22 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [spring/context-datasource.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [sqlMapConfig.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: org.xml.sax.SAXParseException; lineNumber: 64; columnNumber: 85; 요소 유형 "update"에 대한 "resultMap" 속성을 선언해야 합니다.
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1422)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:551)
	... 24 more
Caused by: org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [sqlMapConfig.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: org.xml.sax.SAXParseException; lineNumber: 64; columnNumber: 85; 요소 유형 "update"에 대한 "resultMap" 속성을 선언해야 합니다.
	at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:341)
	at org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:291)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1479)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)
	... 34 more
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: org.xml.sax.SAXParseException; lineNumber: 64; columnNumber: 85; 요소 유형 "update"에 대한 "resultMap" 속성을 선언해야 합니다.
	at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:62)
	at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:62)
	at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:55)
	at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:338)
	... 37 more
Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: org.xml.sax.SAXParseException; lineNumber: 64; columnNumber: 85; 요소 유형 "update"에 대한 "resultMap" 속성을 선언해야 합니다.
	at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:123)
	at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:84)
	at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
	at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
	at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:60)
	... 40 more
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: org.xml.sax.SAXParseException; lineNumber: 64; columnNumber: 85; 요소 유형 "update"에 대한 "resultMap" 속성을 선언해야 합니다.
	at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:62)
	at com.ibatis.sqlmap.engine.builder.xml.SqlMapParser.parse(SqlMapParser.java:44)
	at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$10.process(SqlMapConfigParser.java:257)
	at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:121)
	... 44 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 64; columnNumber: 85; 요소 유형 "update"에 대한 "resultMap" 속성을 선언해야 합니다.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(XMLDTDValidator.java:1253)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1917)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:742)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1359)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
	at com.ibatis.common.xml.NodeletParser.createDocument(NodeletParser.java:189)
	at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:59)
	... 47 more

2월 13, 2018 5:01:44 오후 org.apache.catalina.core.StandardContext startInternal
심각: One or more listeners failed to start. Full details will be found in the appropriate container log file
2월 13, 2018 5:01:44 오후 org.apache.catalina.core.StandardContext startInternal
심각: Context [] startup failed due to previous errors
2월 13, 2018 5:01:44 오후 org.apache.catalina.core.ApplicationContext log
정보: Closing Spring root WebApplicationContext
2월 13, 2018 5:01:44 오후 org.apache.catalina.core.ApplicationContext log
정보: Shutting down log4j
2월 13, 2018 5:01:44 오후 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
경고: The web application [ROOT] appears to have started a thread named [FileWatchdog] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Thread.sleep(Native Method)
 org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:104)
2월 13, 2018 5:01:44 오후 org.apache.coyote.AbstractProtocol start
정보: Starting ProtocolHandler ["http-nio-8080"]
2월 13, 2018 5:01:44 오후 org.apache.coyote.AbstractProtocol start
정보: Starting ProtocolHandler ["ajp-nio-8009"]
2월 13, 2018 5:01:44 오후 org.apache.catalina.startup.Catalina start
정보: Server startup in 4691 ms


//jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page import ="com.neodreams.neoConference.conf.test.*" %>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width", initial-scale="1">
<link rel="stylesheet" href="css/bootstrap.css">
<title>jSP 게시판 웹사이트</title>
	<script type="text/javascript">
	
	 function update(){
		 var frm = document.frm;
		 if( frm.title.value == ""){
			alert("제목을 입력하세요.");
			frm.title.focus();
			return false;
		}
		 if( frm.content.value == ""){
			alert("내용을 입력하세요.");
			frm.title.focus();
			return false;
		}
		  
		/*	document.viewform.action = '/';
			document.viewform.submit(); */
			frm.action = '/update.do';
			frm.submit();
		
	
	
		
	</script>
</head>
<body>
	<nav class="navbar navbar-default">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed"
				data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"
				aria-expanded="false">
			</button>
			<a class="navbar-brand" >JSP 게시판 웹사이트</a>
		</div>
	</nav>
		<h3 style="text-align:center;">게시글 보기</h3>
		<form name="frm" method="post" onsubmit="return update">				
				<div id="item" class="container">
				<table style="text-align:center; margin: auto" class="board_view" border="2px">
		            <colgroup>
		                <col width="20%">
		                <col>
		                <col width="20%">
		                <col>
		            </colgroup>
						<c:forEach var = "item" items = "${read }" varStatus="status">
			                <tr>
			                    <th> 작성번호 : </th>
			                    <td>${item.board_ID }</td>
			                    <th>* 작성자 : </th>
			                    <td style="width:25%; height:30px">${item.writer }</td>
			                </tr>
			                <tr>
			                	<th>* 제목</th>
			                    <td ><input type="text" name="title" id="title" class="wdp_90" style="width:99%; height:30px" value="${item.title }"/></td>	
			                    <th>* 작성일자 : </th>
			                    <td>
			                    <fmt:parseDate value="${item.leg_Data }" var="cnt" pattern="yyyy-MM-dd HH:mm"></fmt:parseDate>
			                    <fmt:formatDate value="${cnt }" pattern="yyyy-MM-dd HH:mm"/>
			                    </td>
			                </tr>
			                <tr>
			                    <td colspan="4" class="view_text">
			                        <textarea id="content" name="content" style="resize:none; width:99%" rows="25" cols="100" >${item.content }</textarea>
			                    </td>
			                </tr>
		                </c:forEach>
		                <tr>
			                <td colspan="4" align="right" style="height:40px; margin-right: 10px;">
				      			
				      			<input type="submit" value="수정" style="border:2px solid; background-color: black; color: white; height:30px; width:50px">
				      			<input type="reset" value="삭제" style="border:2px solid; background-color: black; color: white; height:30px; width:50px">
				      			<input type="button" value="취소" style="border:2px solid; background-color: black; color: white; height:30px; width:50px" onclick="history.back();"> <!-- //location.href='/list.do' -->
				      			
		      				</td>
	      				</tr>
   				</table>
				</div>
		</form>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="js.bootstrap.js"></script>
</body>
</html>


//xml

<update id="updateBoard" resultMap="preticeDto" parameterClass="java.util.HashMap">
   /* {Test.testCnt [설명][작성자][일자] 테스트용 메소드 jsjang 2013-01-10} */
   		update tb_board set
   			Title = #title#,
   			Content = #content#
   				where Board_ID = 20
	</update>


//Dao

//게시물 수정
	public List<PreticeDto> updateBoard() {
		// TODO Auto-generated method stub
		return (List<PreticeDto>)list("boardlist.updateBoard", null);
	}


//ServiceImpl

@Override
	public List<PreticeDto> getupdate() {
		// TODO Auto-generated method stub
		return preticeDao.updateBoard();
	}


//Service

	public List<PreticeDto> getupdate();


//Controller
//게시물 수정
	@RequestMapping("update.do")
	public ModelAndView update(HttpServletRequest request, HttpServletResponse response) throws Exception{
		ModelAndView mv = new ModelAndView();
		mv.setViewName("/jsp/read");
		
		List<PreticeDto> update = preticeService.getupdate();
		mv.addObject("update", update);
		
		return mv;


0
0
  • 답변 10

  • catsfriend
    1k
    2018-02-13 17:31:56

    답이 있네요. resultClass로 선언하시던 resultMap을 만드시던 하셔야죵?

    요소 유형 "update"에 대한 "resultMap" 속성을 선언해야 합니다
    0
  • 천재가 될 사람
    146
    2018-02-13 18:03:57
    <update id="updateBoard" resultMap="preticeDto" parameterClass="java.util.HashMap">
    이 xml에서 update 에 resultMap="preticeDto" 이걸 리턴 받을 수 없을껄요?
    update는 수정된 로우의 카운트를 반환시키는 거지 오브젝트를 반환 시키지 않는것으로 알고 있습니다.
    1
  • 천재가 될 사람
    146
    2018-02-13 18:07:17 작성 2018-02-13 18:11:08 수정됨
    public List<PreticeDto> updateBoard() {
    		// TODO Auto-generated method stub
    		return (List<PreticeDto>)list("boardlist.updateBoard", null);
    	}
    이 부분도 틀렸습니다.  list 를 반환하지 못하고 update("boardlist.updateBoard", vo객체);
    쿼리에 파라미터를 전달받아 사용 하실 수 있을 꺼에요.null을 넣으면 파라미터가 다 null로 전달됩니다.
    map으로 넣으셨으니 map.put(key,value)로 vo객체 대신 넣어주시면 될꺼에요..
    혼자서 해보시는 건 좋은데 참고하실 사이트라도 보고 하시는게 좋을꺼 같습니다. 
    화이팅 하세요~^^
    1
  • neverko
    98
    2018-02-13 19:05:48

    ㅠㅠ입사한지 1개월차... 웹에 대해 지식이 아예 없는채로 해보려니 Error를 잡기 힘드네요ㅠㅠ

    생각하지도 못한곳에서 에러 띄우고 있었네요... 계속 xml, jsp쪽에서 오타난것만 찾고 있었는데

    주옥같은말씀 정말 감사합니다.

    적어주신말씀 검색해보면서 수정해볼께요.

    0
  • neverko
    98
    2018-02-13 19:23:54

    이렇게 수정하시란 말씀이신지...ㅠㅠㅠㅠㅠ?????? 똑같은 에러....나오네요 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ

    에흉....ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ

    controller
    
    //게시물 수정
    	@RequestMapping("update.do")
    	public ModelAndView update(HttpServletRequest request, HttpServletResponse response) throws Exception{
    				
    		HashMap<String, Object> map = new HashMap<>();
    		map.put("Title", request.getParameter("Title"));
    		map.put("content", request.getParameter("content"));
    		
    		preticeService.getupdate(map);
    		return new ModelAndView("redirect:/update.do");


    service
    
    	public Object getupdate(HashMap<String, Object> map);


    serviceImpl
    
    @Override
    	public Object getupdate(HashMap map) {
    		// TODO Auto-generated method stub
    		return preticeDao.updateBoard(map);
    	}


    DAO
    
    //게시물 수정
    	public Object updateBoard(HashMap map) {
    		// TODO Auto-generated method stub
    		return getSqlMapClientTemplate().update("boardlist.updateBoard", map);
    	}


    0
  • 천재가 될 사람
    146
    2018-02-13 21:40:23
    //xml
    
    <update id="updateBoard" resultMap="preticeDto" parameterClass="java.util.HashMap">
       /* {Test.testCnt [설명][작성자][일자] 테스트용 메소드 jsjang 2013-01-10} */
       		update tb_board set
       			Title = #title#,
       			Content = #content#
       				where Board_ID = 20
    	</update>
    이부분에서  <update id="updateBoard" parameterClass="java.util.HashMap">  resultMap="preticeDto" 이건 빼보시고요.
    public Object updateBoard(HashMap map) {
    		// TODO Auto-generated method stub
    		return getSqlMapClientTemplate().update("boardlist.updateBoard", map);
    	}
    이 함수도 void로 수정해서 public void updateBoard(HashMap map) {
        // TODO Auto-generated method stub
    		 getSqlMapClientTemplate().update("boardlist.updateBoard", map);
    } 
    return 받으실 필요 없습니다.

    0
  • 천재가 될 사람
    146
    2018-02-13 22:00:14 작성 2018-02-13 22:00:57 수정됨

    http://hyeonstorage.tistory.com/279 중간쯤에 update 속성 나와있으니까 한번 쯤 보시면 좋을꺼에요.

    에러는 xml 쿼리 update문에는 resultMap 속성이 없는데 쓰니까  Error parsing XML

    파싱(해석) 에러 나는거에요.

    0
  • 沧浪之水
    45
    2018-02-13 22:21:22

    그런데 update에서 왜 resultMap을 사용하시려는지 이해가 잘안가요 IUD는 자동으로 0 또는 1인데요... 위엣분께서 걸어주신 링크에서도 update는 resultType이나 resultMap에 대한 속성을 가지고 있지않아요

    결론은 resultMap을 빼보시고 다시 실행시켜보시는게..

    0
  • neverko
    98
    2018-02-14 09:27:42

    진짜 안되서 고민을 많이했는데 좋은 정보 얻고 가요~!ㅠㅠ

    몇일 고민해서 안되가지고 올리는거라... 정말 감사하단 말씀 전해드리고싶은데요.

    혹시... 아메리카노 드시면... 키프티콘선물로 보내드려도 될까요....??

    0
  • 천재가 될 사람
    146
    2018-02-14 10:32:57

    마음만으로도 감사합니다.

    아직은 처음이라 어려울 수 있지만 그래도 문제를 해결하고 나시면 뿌듯하실꺼에요~


    항상 화이팅 하시고 설명절 즐겁게 보내세요~^^


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