S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation allows a method to execute after application startup?

  • (A) @PostLoad
  • (B) @StartupMethod
  • (C) @PostConstruct
  • (D) @InitMethod
  • Correct Answer - Option(C)
  • Views: 11
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@PostConstruct is called once the bean's properties have been set.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.