If I use both @PostConstruct and @Scheduled on the bean method what are the consequences

@Scheduled(fixedDelay=10000)
@PostConstruct
public void someMethod(){
 //my refresh cache code here
}

      

If I use both @PostConstruct and @Scheduled on the bean method what are the implications. Will this method be executed twice? one after the other can be at the same time?

+3


source to share





All Articles