Languages
[Edit]
EN

Lombok Spring @Autowired annotation in constructor

2 points
Created by:
Brian-Tompset
431

Quick solution:

@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class UserService {
    // ...
}

 

Lombok - java library

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join