Maiłem klasę w module web
w ścieżce
com.web.web.security.service.impl.AuthorizationServiceImpl
przeniosłem tego beana do modułu core
ze ścieżką
com.core.service.impl.AuthorizationServiceImpl
Po prostu kliknąłem lewy przycisk myszy na klasę i przeciągłem. Klasa została przeniesiona. Jednak podczas kompilacji wyrzuca mi
2018-04-04 02:10:15.578 WARN 1688 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.web.WebApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'authorizationService' for bean class [com.core.service.impl.AuthorizationServiceImpl] conflicts with existing, non-compatible bean definition of same name and class [com.web.web.security.service.impl.AuthorizationServiceImpl] As if IntelliJ did not know that I moved the class to another package and throws me into conflict with the previous place, but the class is not there anymore.
Adres to package jest zmieniony automatycznie https://zapodaj.net/4751327f1e63b.png.html.
Czemu tak się dzieje?