뭐
-
[에러]Parameter N of method A in B Class required a single bean, but M were found웹개발/Micro Service Architecture 2019. 4. 15. 16:18
원인 어떤 클래스의 어떤 메소드중 몇번째 파라미터에서 빈이 1개가 필요한데 여러개가 발견되었다고 하는 메세지. 보통 코드를 잘못짜서 메소드가 어떤 인스턴스를 써야할지 모호함이 발생할때 나는 에러이다. @Autowired를 해놓고 또 파라미터로 받고 있다든지... 내가 코드에서 그렇다면 수정하면될텐데 스프링 프레임워크의 메소드에서 내가 수정할수 있는 빈과 그렇지 않은 빈 중에 모호함이 발생해서 나는 에러였다. 에러메세지 *************************** APPLICATION FAILED TO START *************************** Description: Parameter 1 of method BindingHandlerAdvise in org.springframework..