rajithd / spring-boot-oauth2

Spring Boot Oauth2 with H2 database
208 stars 166 forks source link

A better annotation suggestion #21

Open Fatead opened 3 years ago

Fatead commented 3 years ago

change the annotation from @component to @service, it is more appropriate here. This class is mainly responsible for the realization of business logic, which is recommended to use @service in the Spring framework. Moreover it can help you to achieve IOC.