mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-05-30 10:50:42 +00:00
18 lines
653 B
Java
18 lines
653 B
Java
package ru.otus.testingExample;
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.context.ConfigurableApplicationContext;
|
|
import ru.otus.testingExample.services.GreetingService;
|
|
|
|
@SpringBootApplication
|
|
public class TestingExampleSpringBootApplication {
|
|
|
|
public static void main(String[] args) {
|
|
ConfigurableApplicationContext context = SpringApplication.run(TestingExampleSpringBootApplication.class, args);
|
|
GreetingService greetingService = context.getBean(GreetingService.class);
|
|
greetingService.sayChinaGreeting();
|
|
}
|
|
|
|
}
|