Answers for "how to make configuration in spring boot"

0

spring application configuration example

public static void main(String[] args) {
   AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();

   ctx.register(AppConfig.class, OtherConfig.class);
   ctx.register(AdditionalConfig.class);
   ctx.refresh();

   MyService myService = ctx.getBean(MyService.class);
   myService.doStuff();
}
Posted by: Guest on December-07-2020

Code answers related to "how to make configuration in spring boot"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language