Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Thanks for the tutorial. Please let me know why constructor is called only once during prototype execution. "MyBean instance created " is printed only once
- nagendra
Hi . l want to learn that if we move some codes into the Configuration class "MyConfiguration " something like below ; @Configuration public class MyConfiguration { @Bean @Scope(value=“singleton”) public MyBean myBean() { return new MyBean(); } @PostConstruct private void init() { System.out.println(“Verifying Resources”); } @PreDestroy private void shutdown() { System.out.println(“Shutdown All Resources”); } public void close() { System.out.println(“Closing All Resources”); } } output will be cjanged . will be like below Verifying Resources MyBean instance create 1640296160 1640296160 Shutdown All Resources Closing All Resources why ? “Verifying Resources” output will come just after the “MyBean instance create” output . Ami right. please try then give me the answer
- Süleyman Yalman
According to this stackoverflow answer https://stackoverflow.com/a/3406690/9642851 having `@PostConstruct` in constructor injection seems to be redundant.
- Ayman Patel