idrice24 / School-Management-Software

The repository is to present the admin side of a school management system
Apache License 2.0
28 stars 20 forks source link

Review your LoginController class #59

Closed Ghislain1 closed 4 years ago

Ghislain1 commented 4 years ago

My findings:

  1. Can comment statement in LoginController class
  2. Check my comment in LoginController class
  3. Can you explain annotation ie. autowired? -- i m new in spring boot
  4. Update the class suitable
  5. Can you write the author name on the top the class, this is your legacy 💯
idrice24 commented 4 years ago

1) Done! 2) Done! 3) use @Autowired annotation to auto wire bean on the setter method, constructor. it can autowired property in a particular bean. Note. The @Autowired annotation is auto wire the bean by matching data type. The @Autowired annotation can be used to autowire bean on the setter method just like @Required annotation, constructor, a property or methods with arbitrary names and/or multiple arguments 4) OK!