eclipse

[eclipse] UnsatisfiedDependencyException

도미노& 2019. 10. 16. 10:57

Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'menuMapper' defined in file [C:\project\KSIFWEMS\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\KSIFWEMS\WEB-INF\classes\kr\or\ksif\bms\mapper\MenuMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in file [C:\project\KSIFWEMS\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\KSIFWEMS\WEB-INF\classes\kr\or\ksif\bms\config\spring\applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\project\KSIFWEMS\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\KSIFWEMS\WEB-INF\classes\kr\or\ksif\bms\mapper\sql\ExportMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException: The content of element type "update" must match "(include|trim|where|set|foreach|choose|if|bind)".; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\project\KSIFWEMS\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\KSIFWEMS\WEB-INF\classes\kr\or\ksif\bms\config\spring\applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\project\KSIFWEMS\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\KSIFWEMS\WEB-INF\classes\kr\or\ksif\bms\mapper\sql\ExportMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException: The content of element type "update" must match "(include|trim|where|set|foreach|choose|if|bind)".




xml 파일에 문제가 있음

merge문 update/insert문에서 insert문에 

<selectKey keyProperty="id" resultType="int" order="BEFORE">

SELECT 시퀀스 FROM DUAL

</selectKey>

넣어서 에러가 났음