This seems to compile, is there a better way to do...
# getting-started
j
This seems to compile, is there a better way to do this?
Copy code
@Component("EmailProcessor")
open class EmailProcessor 
    @Autowired constructor(
            private val template: AmqpTemplate,
            private val mapper: ObjectMapper
    ): AbstractRPCConsumer<EmailRequest, EmailResponse>() {