Answers for "how to create spring boot application with configurationproperties"

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 create spring boot application with configurationproperties"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language