BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

    <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <version>${org.springframework-version}</version>
        </dependency>


Injection of autowired dependencies failed
Could not autowire field
@Repository("iMeasureDAO") 잘못선언되어잇었음       


Result Maps collection does not contain value -> Could not find result map com.spring.myapp.book.model.Measure] with root cause
Result Maps collection does not contain value for com.restful.test.model.Measure

    <resultMap  id="AllMemberList" type="com.restful.test.model.Measure"> 
               <result column="seq" property="seq"/>
               <result column="key" property="key"/>
               <result column="contents" property="contents"/>
               <result column="input_dt" property="input_dt"/>
               <result column="extends" property="extends"/>
        </resultMap>
       
        <!-- parameterType="int"  where seq = #{seq} -->
       
        <select id="getMeasureList" resultMap="AllMemberList" >
               select seq, key, values, input_dt, extends
               from measures
        </select>

위에 부분을 지정안해줌
http://hyeonstorage.tistory.com/283



반응형

+ Recent posts