이성은
58
2019-10-02 16:10:29 작성 2019-10-02 16:43:21 수정됨
10
798

spring BeanCreationException 에러


심각: Exception sending context initialized event to listener instance of class [charm.common.InitServletContextListener]

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbSvc': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: public charm.db.dbDao charm.db.DbController.m_dao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.mybatis.spring.SqlSessionTemplate charm.db.dbDao.sqlSession; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSession' workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\BitMoney\WEB-INF\classes\spring\com\context-mapper.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\BitMoney\WEB-INF\classes\spring\com\context-mapper.xml]: Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeException

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)

at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)

at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)

at charm.common.InitServletContextListener.contextInitialized(InitServletContextListener.java:38)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4770)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1423)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1413)

at java.base/java.util.concurrent.FutureTask.run(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: public charm.db.dbDao charm.db.DbController.m_dao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.mybatis.spring.SqlSessionTemplate charm.db.dbDao.sqlSession; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSession' defined in file [C:\Users\\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\BitMoney\WEB-INF\classes\spring\com\context-mapper.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\BitMoney\WEB-INF\classes\spring\com\context-mapper.xml]: Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeException

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)

at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)

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 'dbDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.mybatis.spring.SqlSessionTemplate charm.db.dbDao.sqlSession; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSession' defined in file [C:\Users\\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\BitMoney\WEB-INF\classes\spring\com\context-mapper.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\BitMoney\WEB-INF\classes\spring\com\context-mapper.xml]: Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeException

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)

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$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)

... 24 more

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.mybatis.spring.SqlSessionTemplate charm.db.dbDao.sqlSession; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSession' defined in file [C:\Users\\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\BitMoney\WEB-INF\classes\spring\com\context-mapper.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\BitMoney\WEB-INF\classes\spring\com\context-mapper.xml]: Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeException

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)

at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)

... 35 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSession' defined in file [C:\Users\\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\BitMoney\WEB-INF\classes\spring\com\context-mapper.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\BitMoney\WEB-INF\classes\spring\com\context-mapper.xml]: Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeException

at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)

at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:616)

at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)

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$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)

... 37 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\BitMoney\WEB-INF\classes\spring\com\context-mapper.xml]: Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeException

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)

at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)

... 52 more

Caused by: java.lang.reflect.MalformedParameterizedTypeException

at java.base/sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(Unknown Source)

at java.base/sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(Unknown Source)

at java.base/sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(Unknown Source)

at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(Unknown Source)

at java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Unknown Source)

at java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(Unknown Source)

at java.base/sun.reflect.generics.visitor.Reifier.visitArrayTypeSignature(Unknown Source)

at java.base/sun.reflect.generics.tree.ArrayTypeSignature.accept(Unknown Source)

at java.base/sun.reflect.generics.repository.ConstructorRepository.computeParameterTypes(Unknown Source)

at java.base/sun.reflect.generics.repository.ConstructorRepository.getParameterTypes(Unknown Source)

at java.base/java.lang.reflect.Executable.getGenericParameterTypes(Unknown Source)

at java.base/java.lang.reflect.Method.getGenericParameterTypes(Unknown Source)

at java.desktop/java.beans.FeatureDescriptor.getParameterTypes(Unknown Source)

at java.desktop/java.beans.MethodDescriptor.setMethod(Unknown Source)

at java.desktop/java.beans.MethodDescriptor.<init>(Unknown Source)

at java.desktop/java.beans.MethodDescriptor.<init>(Unknown Source)

at java.desktop/java.beans.Introspector.getTargetMethodInfo(Unknown Source)

at java.desktop/java.beans.Introspector.getBeanInfo(Unknown Source)

at java.desktop/java.beans.Introspector.getBeanInfo(Unknown Source)

at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:224)

at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:149)

at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:324)

at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptors(BeanWrapperImpl.java:331)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1242)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1101)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

... 58 more

지금 현재 3일째 고생중인데 정답좀 알려주세요 고수님들 ㅠㅠㅠ
0
  • 답변 10

  • 어쩌다프로그래머
    6k
    2019-10-02 16:39:52

    로그에 어디서 프로젝트 하시는지 다 나오네요..ㅎㅎ


    \WEB-INF\classes\spring\com\context-mapper.xml 이것을 올려주셔애 할듯요 dao 하고요

  • 이성은
    58
    2019-10-02 16:44:30

    package charm.db;

    import java.util.List;
    import java.util.Map;

    import org.apache.ibatis.logging.Log;
    import org.apache.ibatis.logging.LogFactory;
    import org.apache.ibatis.session.RowBounds;
    import org.mybatis.spring.SqlSessionTemplate;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Repository;
    import org.springframework.stereotype.Service;
    @Service
    @Repository("dbDao")
    public class dbDao {
     protected Log log = LogFactory.getLog(dbDao.class);
     
     @Autowired
     private SqlSessionTemplate sqlSession;

     protected void printQueryId(String queryId) {
      if (log.isDebugEnabled()) {
       log.debug("\t QueryId \t: " + queryId);
      }
     }

     public Object insert(Object params, String queryId)
     {
      printQueryId(queryId);
      return sqlSession.insert(queryId, params);
     }

     public Object update(Object params, String queryId)
     {
      printQueryId(queryId);
      return sqlSession.update(queryId, params);
     }

     public Object delete(Object params, String queryId)
     {
      printQueryId(queryId);
      return sqlSession.delete(queryId, params);
     }

     public Object delete(String queryId) {
      printQueryId(queryId);
      return sqlSession.delete(queryId);
     }
     
     @SuppressWarnings( "unchecked" )
     public List list(String strXPath )
     {
      List  list = null;
      try
      {
       list = sqlSession.selectList( strXPath);
      }
      finally
      {
       //sqlSession.close( );
      }
      return list;
     } 
     

     @SuppressWarnings( "unchecked" )
     public List list( Map reqMap, String strXPath )
     {
      List  list = null;
      try
      {
       list = sqlSession.selectList(strXPath , reqMap );
      }
      finally
      {
       //sqlSession.close( );
      }
      return list;
     }  
     
      @SuppressWarnings( "unchecked" )
     public List list( Map reqMap, String strXPath,   int iRowStartPos, int iCount)
     {
      List  list = null;
      
      try
      {
       RowBounds rbs = new RowBounds(iRowStartPos, iCount);
       list = sqlSession.selectList(strXPath , reqMap, rbs );
     
      }
      finally
      {
       //sqlSession.close( );
      }
      return list;
     } 
     
      
     @SuppressWarnings( "unchecked" )
     public List dbPagingList( Map reqMap, String strXPath,   int iRowStartPos, int iCount)
     {
      List  list = null;
      
      try
      {
       
       reqMap.put("page_start", (iRowStartPos + 1 ) ); // �떆�옉�쐞移�
       reqMap.put("page_end",   (iRowStartPos + iCount)  ); // 醫낅즺�쐞移�
       
       list = sqlSession.selectList(strXPath , reqMap );
      }
      finally
      {
       //sqlSession.close( );
      }
      return list;
     } 
       
      
      
      
      
      @SuppressWarnings( "unchecked" )
     public Map detail( Map reqMap, String strXPath )
     {
      Map  rsMap = null;
      
      try
      {
       rsMap = (Map)sqlSession.selectOne(strXPath , reqMap);
      }
      finally
      {
       //sqlSession.close( );
      }
      return rsMap;
     }    
     
      @SuppressWarnings( "unchecked" )
     public Map detail( String strXPath)
     {
      Map  rsMap = null;
      
      try
      {
       rsMap = (Map)sqlSession.selectOne(strXPath);
      }
      finally
      {
       //sqlSession.close( );
      }
      return rsMap;
     }
     
     public int getInt(Map reqMap, String strXPath) {
      int nCount = -999;
     
      try
      {
       nCount = (Integer)sqlSession.selectOne(strXPath , reqMap);
      } catch (Exception e) {
       System.out.println(" [getInt] ==> " + e.toString());
      } 
      finally
      {
       //sqlSession.close( );
      } 

      return nCount;
     }  
     
     public int getInt(String strXPath) {
      int nCount = -999;
     
      try
      {
       nCount = (Integer)sqlSession.selectOne(strXPath);
      } catch (Exception e) {
       System.out.println(" [getInt] ==> " + e.toString());
      } 
      finally
      {
       //sqlSession.close( );
      } 

      return nCount;
     }  
     
     public long getLong(String strXPath) {
      long nCount = -999;
     
      try
      {
       nCount = (Long)sqlSession.selectOne(strXPath);
      } catch (Exception e) {
       System.out.println(" [long] ==> " + e.toString());
      } 
      finally
      {
       //sqlSession.close( );
      } 

      return nCount;
     }
     
     public int getCount(Map reqMap, String strXPath) {
      return getInt(reqMap, strXPath) ;
     }
     
     public int getCount(String strXPath) {
      return getInt(strXPath) ;
     } 
    }


  • 이성은
    58
    2019-10-02 16:44:46

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

     <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
      <property name="dataSource" ref="dataSource"/>
      <property name="configLocation" value="classpath:/mapper/mybatis-config.xml"/>
      <property name="mapperLocations" value="classpath:/mapper/com/**/*.xml"/>
     </bean>
     
     <bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate">
      <constructor-arg index="0" ref="sqlSessionFactory"/>
     </bean>

     <!-- <bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate">
      <constructor-arg index="0" ref="sqlSessionFactory" />
     </bean> -->
     
    </beans>

  • 어쩌다프로그래머
    6k
    2019-10-02 16:55:03
    마이바티스 버전을 다운해보시겠어요..?
  • 이성은
    58
    2019-10-02 17:00:10

    <dependency>

    <groupId>org.mybatis</groupId>

    <artifactId>mybatis</artifactId>

    <version>3.2.8</version>

    </dependency>


    <dependency>

    <groupId>org.mybatis</groupId>

    <artifactId>mybatis-spring</artifactId>

    <version>1.2.2</version>

    </dependency>


  • 이성은
    58
    2019-10-02 17:00:25
    현재 이버전 사용중인데 더내려야하나요??
  • 어쩌다프로그래머
    6k
    2019-10-02 17:02:27

    현재 운영중인 버전인가요...?

    스프링이 버전이 어떻게 되나요...

    전체 소스를 못보니 추측만 하는대 스프링과 마이바트스 버전 충돌로 예상만 합니다.

  • 이성은
    58
    2019-10-02 17:03:29

    <?xml version="1.0" encoding="UTF-8"?>

    <project xmlns="http://maven.apache.org/POM/4.0.0"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <groupId>bitmoney.mycom</groupId>

    <artifactId>myapp</artifactId>

    <name>BitMoney</name>

    <packaging>war</packaging>

    <version>1.0.0-BUILD-SNAPSHOT</version>

    <properties>

    <java-version>1.6</java-version>

    <org.springframework-version>3.1.1.RELEASE</org.springframework-version>

    <org.aspectj-version>1.6.10</org.aspectj-version>

    <org.slf4j-version>1.6.6</org.slf4j-version>

    </properties>


    <repositories>

    <repository>

    <id>mvn2</id>

    <url>http://repo1.maven.org/maven2/</url>

    <releases>

    <enabled>true</enabled>

    </releases>

    <snapshots>

    <enabled>true</enabled>

    </snapshots>

    </repository>

    <repository>

    <id>oracle</id>

    <name>ORACLE JDBC Repository</name>

    <url>http://mesir.googlecode.com/svn/trunk/mavenrepo</url>

    </repository>

    <repository>

    <id>Spring Plugins</id>

    <url>http://repo.spring.io/plugins-release/</url>

    </repository>

    </repositories>


    <dependencies>

    <dependency>

    <groupId>xerces</groupId>

    <artifactId>xercesImpl</artifactId>

    <version>2.9.1</version>

    </dependency>

    <!-- Spring -->

    <dependency>

    <groupId>org.springframework</groupId>

    <artifactId>spring-context</artifactId>

    <version>${org.springframework-version}</version>

    <exclusions>

    <!-- Exclude Commons Logging in favor of SLF4j -->

    <exclusion>

    <groupId>commons-logging</groupId>

    <artifactId>commons-logging</artifactId>

    </exclusion>

    </exclusions>

    </dependency>

    <dependency>

    <groupId>org.springframework</groupId>

    <artifactId>spring-webmvc</artifactId>

    <version>${org.springframework-version}</version>

    </dependency>


    <!-- AspectJ -->

    <dependency>

    <groupId>org.aspectj</groupId>

    <artifactId>aspectjrt</artifactId>

    <version>${org.aspectj-version}</version>

    </dependency>


    <!-- Logging -->

    <dependency>

    <groupId>org.slf4j</groupId>

    <artifactId>slf4j-api</artifactId>

    <version>${org.slf4j-version}</version>

    </dependency>

    <dependency>

    <groupId>org.slf4j</groupId>

    <artifactId>jcl-over-slf4j</artifactId>

    <version>${org.slf4j-version}</version>

    <scope>runtime</scope>

    </dependency>

    <dependency>

    <groupId>org.slf4j</groupId>

    <artifactId>slf4j-log4j12</artifactId>

    <version>${org.slf4j-version}</version>

    <scope>runtime</scope>

    </dependency>

    <dependency>

    <groupId>log4j</groupId>

    <artifactId>log4j</artifactId>

    <version>1.2.15</version>

    <exclusions>

    <exclusion>

    <groupId>javax.mail</groupId>

    <artifactId>mail</artifactId>

    </exclusion>

    <exclusion>

    <groupId>javax.jms</groupId>

    <artifactId>jms</artifactId>

    </exclusion>

    <exclusion>

    <groupId>com.sun.jdmk</groupId>

    <artifactId>jmxtools</artifactId>

    </exclusion>

    <exclusion>

    <groupId>com.sun.jmx</groupId>

    <artifactId>jmxri</artifactId>

    </exclusion>

    </exclusions>

    <scope>runtime</scope>

    </dependency>


    <!-- @Inject -->

    <dependency>

    <groupId>javax.inject</groupId>

    <artifactId>javax.inject</artifactId>

    <version>1</version>

    </dependency>


    <!-- Servlet -->

    <dependency>

    <groupId>javax.servlet</groupId>

    <artifactId>servlet-api</artifactId>

    <version>2.5</version>

    <scope>provided</scope>

    </dependency>

    <dependency>

    <groupId>javax.servlet.jsp</groupId>

    <artifactId>jsp-api</artifactId>

    <version>2.1</version>

    <scope>provided</scope>

    </dependency>

    <dependency>

    <groupId>javax.servlet</groupId>

    <artifactId>jstl</artifactId>

    <version>1.2</version>

    </dependency>


    <!-- Test -->

    <dependency>

    <groupId>junit</groupId>

    <artifactId>junit</artifactId>

    <version>4.7</version>

    <scope>test</scope>

    </dependency>


    <!-- 추가 -->

    <dependency>

    <groupId>org.apache.ibatis</groupId>

    <artifactId>ibatis-core</artifactId>

    <version>3.0</version>

    </dependency>


    <dependency>

    <groupId>org.mybatis</groupId>

    <artifactId>mybatis</artifactId>

    <version>3.2.2</version>

    </dependency>


    <dependency>

    <groupId>org.mybatis</groupId>

    <artifactId>mybatis-spring</artifactId>

    <version>1.2.0</version>

    </dependency>


    <dependency>

    <groupId>org.springframework</groupId>

    <artifactId>spring-tx</artifactId>

    <version>5.1.10.RELEASE</version>

    </dependency>

    <dependency>

    <groupId>javax.annotation</groupId>

    <artifactId>javax.annotation-api</artifactId>

    <version>1.3.1</version>

    </dependency>

    <dependency>

    <groupId>net.sf.json-lib</groupId>

    <artifactId>json-lib-ext-spring</artifactId>

    <version>1.0.2</version>

    </dependency>

    <dependency>

    <groupId>servlets.com</groupId>

    <artifactId>cos</artifactId>

    <version>05Nov2002</version>

    </dependency>

    <dependency>

    <groupId>net.sourceforge.jexcelapi</groupId>

    <artifactId>jxl</artifactId>

    <version>2.6.12</version>

    </dependency>

    <dependency>

    <groupId>commons-codec</groupId>

    <artifactId>commons-codec</artifactId>

    <version>1.9</version>

    </dependency>

    <dependency>

    <groupId>commons-io</groupId>

    <artifactId>commons-io</artifactId>

    <version>2.4</version>

    </dependency>

    <dependency>

    <groupId>org.jdom</groupId>

    <artifactId>jdom</artifactId>

    <version>1.1.3</version>

    </dependency>

    <dependency>

    <groupId>org.apache.commons</groupId>

    <artifactId>commons-compress</artifactId>

    <version>1.8.1</version>

    </dependency>

    <dependency>

    <groupId>commons-dbcp</groupId>

    <artifactId>commons-dbcp</artifactId>

    <version>1.4</version>

    </dependency>

    <dependency>

    <groupId>com.oracle</groupId>

    <artifactId>ojdbc6</artifactId>

    <version>11.2.0.3</version>

    </dependency>

    <dependency>

    <groupId>net.fckeditor</groupId>

    <artifactId>fckeditor-java</artifactId>

    <version>2.6</version>

    <type>pom</type>

    </dependency>

    <dependency>

    <groupId>org.springframework</groupId>

    <artifactId>spring-jdbc</artifactId>

    <version>${org.springframework-version}</version>

    </dependency>

    </dependencies>

    <build>

    <plugins>

    <plugin>

    <artifactId>maven-eclipse-plugin</artifactId>

    <version>2.9</version>

    <configuration>

    <additionalProjectnatures>

    <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>

    </additionalProjectnatures>

    <additionalBuildcommands>

    <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>

    </additionalBuildcommands>

    <downloadSources>true</downloadSources>

    <downloadJavadocs>true</downloadJavadocs>

    </configuration>

    </plugin>

    <plugin>

    <groupId>org.apache.maven.plugins</groupId>

    <artifactId>maven-compiler-plugin</artifactId>

    <version>2.5.1</version>

    <configuration>

    <source>1.6</source>

    <target>1.6</target>

    <compilerArgument>-Xlint:all</compilerArgument>

    <showWarnings>true</showWarnings>

    <showDeprecation>true</showDeprecation>

    </configuration>

    </plugin>

    <plugin>

    <groupId>org.codehaus.mojo</groupId>

    <artifactId>exec-maven-plugin</artifactId>

    <version>1.2.1</version>

    <configuration>

    <mainClass>org.test.int1.Main</mainClass>

    </configuration>

    </plugin>

    </plugins>

    </build>

    </project>


  • 이성은
    58
    2019-10-02 17:04:14

    혹시몰라서 다올렸습니다!!

  • 어쩌다프로그래머
    6k
    2019-10-02 17:20:47

    딱 맞는 케이스의 버전 충돌 문제는 못찾겠네요...


    지금 보여주신 pom파일이 운영에서 실질적으로 사용되어지고 있는지 파일인가요...?

    제 질문은 스프링과 마이바티스 버전이 현재 잘 돌아가고 있는 개발서버나 운영서버하고 버전이 동일한가입니다.?


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