参考文档:  https://segmentfault.com/a/1190000018357979

 

 

github:

https://github.com/Lshan523/springboot-scala-integration/tree/master/src/main

 

如果需要注入多个对象:

class UserServiceTest @Autowired()(
                                    private val userService: UserService,
                                    private val rolesService: RolesService)
{

 

posted on 2020-05-10 10:32  lshan  阅读(750)  评论(0编辑  收藏  举报