I have Kotlin class
@Component
open class NewsRecordProcessor @Autowired constructor(private val newsChecker: NewsChecker,
private val originNewsController: OriginNewsRecordController,
private val directoryProcessor: DirectoryProcessor) {…}
In this case it’s ok.
But I need to start transaction at one method begining. And then I’m adding
@Transactional
It’s no metter where am I put it, before function declaration or before class declaration. As soon annotation is putted all autowired fields are null. This bean also autowired in another bean, but it seams constructor with parameters wasn’t call
or fields is set to another proxy class.
What can I do to fix it?