Complete the service

Report a typo

Which annotation should we use to implement this business layer service?

Java
___________________
public class UserService {
	
    private final UserRepository userRepository;
	
    @Autowired
    public UserService(UserRepository userRepository) {
        this.userRepository = userRepository;
    }
	
}
Kotlin
___________________
class UserService(private val userRepository: UserRepository) {

}
Select one option from the list
___

Create a free account to access the full topic