Let's autowire the UserRepository using the @Autowired annotation. Here is the piece of code of this class:
@RestController
class UserController {
@Autowired
private lateinit var userRepository: UserRepository
----
----
}
Let's autowire the UserRepository using the @Autowired annotation. Here is the piece of code of this class:
@RestController
class UserController {
@Autowired
private lateinit var userRepository: UserRepository
----
----
}
3.142.133.54