알고리즘의 정의

4가지로 표현 가능

1.문제. 2.해결방법, 3.효율성. 4 단계적


문제를 해결 하는 방법 


효율성

가장 효율적인 방법은 무엇일까를 생각해야함


단계적

체계적으로 설명이 되어야 하기 때문에단계적도 포함





1. 컴퓨터 언어란?

컴퓨터와 대화하기위해서 사용하는 언어 입니다.

ex) c,c++ java 파이썬


2. 컴퓨터 알고리즘

컴퓨터를 이용하여 주어진 문제를 풀기 위한 방법이나 절차

ex)정렬알고리즘 , 해시알고리즘 , 최단거리알고리즘 


3. 컴퓨터 프로그램

컴퓨터가특정 작업을 수행하기 위해 짜여진 명령의 순서 




컴퓨터를 이용해서 어던 작업을 하려고 한다면 . 컴퓨터에게 할일을 하나씩 차례대로 알려줘야 합니다.


ex예제 

우리집에서 회사까지 갈때 다음의 방법을 단계별로 설명해보세요 


1. 택시를 타고

2. 지하철을 타고

3. 자전거를 타고

4. 걸어서


택시를 타고 회사가는 방법을

친구에게 단계적으로 설명한다고 생각해봅시다. 


1. 택시를 타기위해서 대로변으로 이동해야합니다.

2. 택시를 향해서 타겠다는 사인을 보내야 합니다.

3. 택시가 서게되면 택시에 타서 목적지를 말합니다. 

4. 택시가 목적지에 도착하면 차비를 지불하고 택시를 내립니다.


즉 알고리즘은 

문제에 대해 해결책을 단계적으로 알려주는 것!이라고 생각할수있다.



회사에 도착하기 위한 가장빠른 방법은 무엇이고 가장 비용이 많이 드는 방법은 무엇일까요?


시간측면 

1. 빠른 방법은 택시 

2. 가장 느린방법 걸어서.


비용측면

3. 비용이 가장많이 드는것 택시

4. 비용이 가장 적게 드는것 걸어서 




알고리즘을 설명하기위한 4단계

1. 문제 정의 

해결하고자 하는 문제는 무엇인가.

입력과출력의 형태로 정의 될 수 있는가?

컴퓨터가 수행할 수 있는 형태로 전환이 가능합니까?


2. 알고리즘 설명

컴퓨터가 수행 할 내용은 하나씩 차례대로 정의한 과정

ex 빨래하는 방법

1. 지저분한 빨래를 모으고      (입력)

2. 빨래를 색별로 구별

3. 면, 모직등으로 다시 구분

4. 섬유유연제와 세제를 넣고 세탁기를 돌림

5. 빨래를 널고 1~2일 후 

6. 깨끗한 옷을 얻는다            (출력)



ex _) 라면 끓이기 

1. 냄비에 물을 500ml 붙고 . 

2.  불을 켠다.

3. 물이 끓습니다. 

4. 물이 끓으면 재료를 넣고 3분동안 기다립니다.

5. 3분이 지나면 라면을 먹습니다.


수치를 정확히 정의해주어야 합니다.



3. 정확성증명

과정대로 수행하면 출력으로 항상 올바른 답을 내보내는가?

잘못된 을 내보내는 경우는 없는가?

올바른 출력을 내보내고 정상적으로 종료되는가?


4. 성능 분석

수행시간. 

사용공간

























스프링 인터셉터를 이용하여 log4j 설정


1. 적당한 곳에 패키지 생성 후 클래스 만들어 줌 interceptor로 사용


클래스명 :LoggerInterceptor 

패키지위치 :com.spring.common.logger



소스


public class LoggerInterceptor extends HandlerInterceptorAdapter {

    

protected Log log = LogFactory.getLog(LoggerInterceptor.class);


    @Override

    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {

        if (log.isDebugEnabled()) {

        log.debug("======================================          START         ======================================");

        log.debug(" Request URI \t:  " + request.getRequestURI());

        }

        return super.preHandle(request, response, handler);

    }

     

    @Override

    public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {

        if (log.isDebugEnabled()) {

        log.debug("======================================           END          ======================================\n");

        }

    }

}





2. servlet-context.xml 파일 수정하여 인터셉터 추가 및 맵핑 



<!--인터셉터 설정 -->

     <mvc:interceptors>

        <mvc:interceptor>

            <mvc:mapping path="/**"/>

            <beans:bean id="loggerInterceptor" class="com.spring.common.logger.LoggerInterceptor" />  

        </mvc:interceptor>

    </mvc:interceptors>



<mvc:interceptors> 가 안먹히고 오류가 한참 뜨는데 이유를 모르겠더이다  나중에 알고 보니 

servlet-context.xml파일 최상위에 beans:bean에 mvc를 정의해주지 않아서였음 

 xmlns:mvc="http://www.springframework.org/schema/mvc"

이거 추가해야 인터셉터 설정이 정상적으로 됨 



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

<beans:beans xmlns="http://www.springframework.org/schema/mvc"

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

xmlns:beans="http://www.springframework.org/schema/beans"

xmlns:context="http://www.springframework.org/schema/context"

xmlns:mvc="http://www.springframework.org/schema/mvc"

xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd

http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">




3. controller 에 

로그 남겨주면 잘 나온다...




친절한 블로그들 많으니까 자세한건 다른 블로그 가서 보길..

http://addio3305.tistory.com/43




내가 가장 헤멘 부분은 


2. servlet-context.xml 파일 수정하여 인터셉터 추가 및 맵핑 



<!--인터셉터 설정 -->

     <mvc:interceptors>

        <mvc:interceptor>

            <mvc:mapping path="/**"/>

            <beans:bean id="loggerInterceptor" class="com.spring.common.logger.LoggerInterceptor" />  

        </mvc:interceptor>

    </mvc:interceptors>



xml파일 최상단에 mvc 추가 되어있는지 확인하고 작업하길 바랍니다.



이거 제외하면 어려울게 없다 


정리 개떡같이 못한다.

ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ


컨셉 잘 잡은듯 ㅋㅋㅋ










아래의 오류가 개떡같이 뜬다면..

  @Autowired

   ProfMapper pmapper; 


매핑 부분확인 변수명을 마음대로 줘버리면 autowired 가 찾을 수 없어서 발생..


@Autowired

  ProfMapper profMapper; 


요렇게 ㅂ변경했더니 바로 수정 

짜증나 
개떡같다.




org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.spring.prof.service.ProfService com.spring.prof.controller.ProfController.profService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

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

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

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

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

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

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

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

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

at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:664)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:630)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:678)

at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)

at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:490)

at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)

at javax.servlet.GenericServlet.init(GenericServlet.java:158)

at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1227)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1140)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1027)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5038)

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

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 field: private com.spring.prof.service.ProfService com.spring.prof.controller.ProfController.profService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

... 29 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

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

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

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

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

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

at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

... 31 more

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

... 42 more

Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1054)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

... 44 more

[2017-01-06 10:42:33,843] [ERROR] (FrameworkServlet.java:498)     - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.spring.prof.service.ProfService com.spring.prof.controller.ProfController.profService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

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

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

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

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

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

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

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

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

at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:664)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:630)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:678)

at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)

at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:490)

at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)

at javax.servlet.GenericServlet.init(GenericServlet.java:158)

at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1227)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1140)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1027)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5038)

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

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 field: private com.spring.prof.service.ProfService com.spring.prof.controller.ProfController.profService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

... 29 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

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

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

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

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

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

at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

... 31 more

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

... 42 more

Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1054)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

... 44 more

1월 06, 2017 10:42:33 오전 org.apache.catalina.core.ApplicationContext log

심각: StandardWrapper.Throwable

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.spring.prof.service.ProfService com.spring.prof.controller.ProfController.profService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

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

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

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

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

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

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

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

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

at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:664)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:630)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:678)

at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)

at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:490)

at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)

at javax.servlet.GenericServlet.init(GenericServlet.java:158)

at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1227)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1140)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1027)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5038)

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

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 field: private com.spring.prof.service.ProfService com.spring.prof.controller.ProfController.profService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

... 29 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

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

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

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

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

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

at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

... 31 more

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

... 42 more

Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1054)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

... 44 more


1월 06, 2017 10:42:33 오전 org.apache.catalina.core.StandardContext loadOnStartup

심각: Servlet [spring] in web application [] threw load() exception

org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1054)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

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

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

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

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

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

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

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

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

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

at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

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

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

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

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

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

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

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

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

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

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

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

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

at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:664)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:630)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:678)

at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)

at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:490)

at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)

at javax.servlet.GenericServlet.init(GenericServlet.java:158)

at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1227)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1140)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1027)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5038)

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

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)


1월 06, 2017 10:42:33 오전 org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory getObjectInstance

경고: Name = oracle Property maxActive is not used in DBCP2, use maxTotal instead. maxTotal default value is 8. You have set value of "50" for "maxActive" property, which is being ignored.

1월 06, 2017 10:42:33 오전 org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory getObjectInstance

경고: Name = oracle Property maxWait is not used in DBCP2 , use maxWaitMillis instead. maxWaitMillis default value is -1. You have set value of "-1" for "maxWait" property, which is being ignored.

1월 06, 2017 10:42:33 오전 org.apache.coyote.AbstractProtocol start

정보: Starting ProtocolHandler ["http-nio-8081"]

1월 06, 2017 10:42:33 오전 org.apache.coyote.AbstractProtocol start

정보: Starting ProtocolHandler ["ajp-nio-8009"]

1월 06, 2017 10:42:33 오전 org.apache.catalina.startup.Catalina start

정보: Server startup in 3382 ms

1월 06, 2017 10:42:36 오전 org.apache.catalina.core.ApplicationContext log

정보: Initializing Spring FrameworkServlet 'spring'

[2017-01-06 10:42:36,448] [INFO] (FrameworkServlet.java:485)     - FrameworkServlet 'spring': initialization started

[2017-01-06 10:42:36,448] [INFO] (AbstractApplicationContext.java:510)     - Refreshing WebApplicationContext for namespace 'spring-servlet': startup date [Fri Jan 06 10:42:36 KST 2017]; root of context hierarchy

[2017-01-06 10:42:36,449] [INFO] (XmlBeanDefinitionReader.java:317)     - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-servlet.xml]

[2017-01-06 10:42:36,514] [INFO] (XmlBeanDefinitionReader.java:317)     - Loading XML bean definitions from ServletContext resource [/WEB-INF/servlet-context.xml]

[2017-01-06 10:42:36,669] [WARN] (AbstractApplicationContext.java:487)     - Exception encountered during context initialization - cancelling refresh attempt

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.spring.prof.service.ProfService com.spring.prof.controller.ProfController.profService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

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

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

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

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

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

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

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

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

at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:664)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:630)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:678)

at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)

at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:490)

at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)

at javax.servlet.GenericServlet.init(GenericServlet.java:158)

at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1227)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1140)

at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:817)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:745)

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.spring.prof.service.ProfService com.spring.prof.controller.ProfController.profService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

... 36 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

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

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

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

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

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

at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

... 38 more

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

... 49 more

Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1054)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

... 51 more

[2017-01-06 10:42:36,674] [ERROR] (FrameworkServlet.java:498)     - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.spring.prof.service.ProfService com.spring.prof.controller.ProfController.profService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

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

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

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

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

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

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

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

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

at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:664)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:630)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:678)

at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)

at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:490)

at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)

at javax.servlet.GenericServlet.init(GenericServlet.java:158)

at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1227)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1140)

at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:817)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:745)

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.spring.prof.service.ProfService com.spring.prof.controller.ProfController.profService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

... 36 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

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

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

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

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

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

at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

... 38 more

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

... 49 more

Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1054)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

... 51 more

1월 06, 2017 10:42:36 오전 org.apache.catalina.core.ApplicationContext log

심각: StandardWrapper.Throwable

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.spring.prof.service.ProfService com.spring.prof.controller.ProfController.profService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

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

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

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

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

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

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

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

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

at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:664)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:630)

at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:678)

at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)

at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:490)

at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)

at javax.servlet.GenericServlet.init(GenericServlet.java:158)

at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1227)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1140)

at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:817)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:745)

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.spring.prof.service.ProfService com.spring.prof.controller.ProfController.profService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

... 36 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profServiceImpI': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

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

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

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

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

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

at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

... 38 more

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.spring.prof.dao.ProfMapper com.spring.prof.service.ProfServiceImpI.profMxpper; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

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

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

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

... 49 more

Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.spring.prof.dao.ProfMapper] is defined: expected single matching bean but found 2: profMapperImpI,profMapper

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1054)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)

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

... 51 more



정상적으로 JDBC 연동 했는데도 불구하고 

결과값이 출력되지 않아 새벽부터 맨붕이었는데

알고 보니 ..........


오라클에 인서트한 값을 커밋해주지 않아서 였다.

두시간 날렸다..


잊지 말자..




정상적으로  다이얼로그 호출하고 

검색 쿼리를 구현했는데.....

검색되지 않았다....

알고보니


인스턴스를 새로 생성해줘서...

뻘짓하느라 세시간 날렸다.


잊지말자 



결국 다 정상이 아니였다는 이야기







주요 특성
1. abstraction 추상화
ㄴ 객체와 프로시저들의 공통의 특질을 골라내는 과정
필드와 메소드를 구분!
ex) 삼각형 원--> 도형
기능
알고리즘을 한번만 작성하고 여러 상황에서 쓰일 수 있도록 한다.
객체
하나의 클래스에 관련 있는 속성과 메서드를 그룹짓는다.
2. information hiding
객체 데이터를 외부에서 접근하지 못하도록 하는 방법
왜? 할까?

외부에서 데이터에 접근할 경우 잘못된 데이터를 입력해도 이를 체크할수없다.
잘못된 값이 입력될 확률이 없다면 인포메이션 하이딩 할필요가 없다.

3.encapsulation
필드와 메소드를 외부에 공개하지 않는것 (캡슐화)
구현된 클래스의 세부사항을 숨긴다.
장점 : 클래스 내부를 알필요없이 쓰기만 하면된다 쉬워짐
단점 : 숨겨진 기능을 변경하고자 할 때 처리하기 어려워진다
상속받고 재정의 하기 어려워질수 있음


자바에서 oop 3가지 특성
1.캡슐화
2.상속
3.다형성




오브젝트와 클래스
오브젝트는 메모리에 생성
커피,컵등등 사물 만져지는 것은 전부 오브젝트라고 부른다.
오브젝트는 그룹핑 할 수 있습니다.

클래스는 메모리에 로딩
사물에 대한 설계도 : 클래스라고 합니다
클래스 쥑이네
설계도가 있다면 설계도를 이용해서 사물을 만들어 낼수 있음


클래스를 이용해 오브젝트를 만들고 이가 있는 곳을 메모리(힙)이라고 함.


클래스
1.클래스는 객체가 포함하고있는 data를 나타낸다.
2..클래스는 객체가 보여주는 기능을 나타낸다.

즉 클래스는 객체가 포함하고 있는 data와 보여주는 기능을 나타낸다.


오브젝트
필드와 메소드 설계도(클래스)에 의해 정해진 값과 기능

필드 : 속성 값
메소드: 행동

객체간 관계
객체는 혼자 존재하지 않습니다.

객체관계
1 is a :
삼각형은 도형이다. 사각형은 도형이다 --> ~~는 ~~ 이다.
삼각형은 종이에 그릴 수 있는 속성이 있다.
사각형은 종이에 그릴 수 있는 속성이 있다.--> darwable();
Triangle t=new Triangle();
Shape s=(Shape)t;
Drawable d=(Drawable)t;

2.has a :
삼각형은 세개의 점을 가지고 있다
사각형은 네개의 점을 가지고 있다.
Triangle 은 point를 가지고 있다.
t.point(); ~~는~~를 가지고있다.



오브젝트 멤버를 참조하는 방법 : 닷 노테이션.

상속 inheritance

상속은 새로운 클래스가 기존의 클래스의 자료와 연산을 이용할 수 있게 하는 기능
상속을 통해서 기존의 클래스를 상속받은 하위 클래스를 이용ㅇ해
프로그램의 요구에 맞추어 클래스를 수정할 수 있고 클래스 간의 종속 관계를 형성함으로써
객체를 조직화 시킬 수 있다.

다형성 polymorhism

다형성은 많은 다른 형태를 가질 수 있는 성질을 말한다.ㅏ
예를들어 manager 클래스는 employee 성질을 가질 수 있음.

하나의 객체는 오로지 하나의 행태만을 가진다.






어제 발생한 뉴질랜드 7.5 지진 영상
 살벌하네요 ;;;

뉴질랜드 지진 
더이상 남의 일이 아닌것 같아 더 불안하고 관심 갖게 되네요..ㅜ.ㅜ

모두ㅠ 아무일 없길 바랍니다. 



 









11/13일

보스니아 vs 그리스 

에딘제코  바지 내리기 스킬

볼썽사납다

에딘제코는 퇴장당하고 나가다가 날아온 물체에 맞아 피까지 흘렸다던데.

결과는 결국 1:1;;



내가 이러려고 바지 내렸나 자괴감들고 괴로워 할듯. ㅋㅋㅋ





매주 월화 나의 10시를 책임지던 수가 오늘 떠나갔음

보보경심 려

겁나 재미있는데 진짜 뭐라 설명할 방법이 없네..




연기력 논란이 있긴 했지만 아이유 팬이 아님에도 불구하고 너무 재미있게 보았다 수야 


타임슬립하느라 고생 많았다






내용을 전부 말할 수는 없지만 수를 잃은 이준기가 결국은...





그리고 수는 현실세계에서 환생한 황자들을 다시 만나는디 ..


                                                                                                                

            얼쑤..


           해피엔딩...? 결과는 직접 확인하시길..


          개떡같다..


          그런데 아직도 13황자의 이름이 베가인지가 궁금함. 

          너무 뜬금없잖아 베가..

 

 

          이제 뭘 봐야 하지..



+ Recent posts