title: Spring boot: bean definition name duplicated
body: <p>I'm getting next message when my service starts:</p>
  <blockquote>
  <p>ConflictingBeanDefinitionException: Annotation-specified bean name 'estatRegistreServiceImpl' for bean class [cat.gencat.catsalut.hes.mpi.api.loader.service.EstatRegistreServiceImpl] conflicts with existing, non-compatible bean definition of same name and class [cat.gencat.catsalut.hes.mpi.api.admin.service.impl.EstatRegistreServiceImpl]</p>
  </blockquote>
  <blockquote>
  <p>Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'estatRegistreServiceImpl' for bean class [cat.gencat.catsalut.hes.mpi.api.loader.service.EstatRegistreServiceImpl] conflicts with existing, non-compatible bean definition of same name and class [cat.gencat.catsalut.hes.mpi.api.admin.service.impl.EstatRegistreServiceImpl]</p>
  </blockquote>
  <p>Currently, I've created two packages containing my services:</p>
  <pre><code>src/main/java/cat/gencat/catsalut/hes/mpi/api/admin/service/
  src/main/java/cat/gencat/catsalut/hes/mpi/api/loader/service/
  </code></pre>
  <p>src/main/java/cat/gencat/catsalut/hes/mpi/api/admin/service/</p>
  <pre><code>src/main/java/cat/gencat/catsalut/hes/mpi/api/admin/service/
  ├── EstatRegistreService.java
  ├── impl
      ├── EstatRegistreServiceImpl.java
  </code></pre>
  <p>And</p>
  <pre><code>src/main/java/cat/gencat/catsalut/hes/mpi/api/loader/service/
  ├── EstatRegistreService.java
  ├── impl
      ├── EstatRegistreServiceImpl.java
  </code></pre>
  <p>Both beans are registered using the same name: <code>estatRegistreServiceImpl</code>.</p>
  <p>I know I've able to use <code>@Service</code> annotation setting a registration name. I don't want to mantain these string literals since I've a lot of service-like classes.</p>
  <p>Is there any way to get it without using <code>@Service(&quot;service1&quot;) and </code>@Service(&quot;service2)`?</p>
  <p>Thanks</p>