title: What is the bean ID of spring bean implements an interface
body: <p>When the bean is createt for a class as <code>MyBean</code> the bean id is <code>myBean</code> but <strong>what will be the bean ID if I create the service bean from an interface like below?</strong></p>
  
  <pre><code>@Service
  public class ProfileServiceImpl implements ProfileService
  </code></pre>
  
  <p>When I try to access the bean as <code>@profileService</code> thymeleaf gives the below error.</p>
  
  <pre><code>org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'profileService' is defined
  </code></pre>
  
  <p>All this time I'm using this bean by <code>autowiring</code> to the controller. But at the moment I need to access this from the <code>thymeleaf</code>.</p>
  
  <p>My thymeleaf code segment</p>
  
  <pre><code> &lt;div th:unless="${@profileService.isMe(user)}"&gt;
  </code></pre>