raphaelDL / spring-webflux-security-jwt

A JWT authorization and authentication implementation with Spring Reactive Webflux, Spring Boot 2 and Spring Security 5
301 stars 87 forks source link

A better annotation suggestion #12

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.