본문 바로가기
오류노트

Parameter 0 of method openEntityManagerInViewInterceptor Configuring org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration required a single bean, but 2 were found:

by 어컴띵 2020. 5. 6.

 

Mark one of the beans as primary

    @Primary
    @Bean
    public EntityManagerFactory entityManagerFactory() {
}

https://stackoverflow.com/questions/41881759/spring-boot-jpa-multiple-datasource-error

불러오는 중입니다...