File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Spring_part_7/src/main/java/spring/oldboy Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ package spring .oldboy ;
2+
3+ import org .springframework .boot .SpringApplication ;
4+ import org .springframework .boot .autoconfigure .SpringBootApplication ;
5+ import org .springframework .boot .context .properties .ConfigurationPropertiesScan ;
6+ import org .springframework .context .ConfigurableApplicationContext ;
7+
8+ /*
9+ Аннотация указанная над 'точкой входа' в Spring приложение
10+ должна быть единственной на все наше приложение.
11+ */
12+ @ SpringBootApplication
13+ @ ConfigurationPropertiesScan
14+ public class SpringAppRunner {
15+
16+ public static void main (String [] args ) {
17+
18+ ConfigurableApplicationContext context =
19+ SpringApplication .run (SpringAppRunner .class , args );
20+
21+ }
22+ }
You can’t perform that action at this time.
0 commit comments