title: Field authenticationManager in service.SecurityServiceImpl required a bean of type 'org.springframework.security.authentication.AuthenticationManager'
body: <p>I am new to Spring Boot and trying to implement whatever I've learned from this link:
  <a href="https://dev.to/onlineinterview/user-account-loginregistration-feature-with-spring-boot--3fc3" rel="nofollow noreferrer">login-registration-feature</a>.
  My aim is to build a user login and registration feature but i'm stuck with this error:</p>
  <pre><code>***************************
  APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  Field authenticationManager in com.x.assignment.auth.service.SecurityServiceImpl required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found.
  
  The injection point has the following annotations:
      - @org.springframework.beans.factory.annotation.Autowired(required=true)
  
  
  Action:
  
  Consider defining a bean of type 'org.springframework.security.authentication.AuthenticationManager' in your configuration.
  </code></pre>
  <p>My folder structure, code is same as the one mentioned in the link. But couldn't figure out why @AutoWired is not working. Please help me. Thank you.</p>