JAVA-8373: Split or move spring-boot-bootstrap module

This commit is contained in:
sampadawagde
2021-12-15 22:35:42 +05:30
parent 479179f1d6
commit 8e175b72e2
7 changed files with 17 additions and 1 deletions
@@ -0,0 +1,20 @@
package com.baeldung.springbootconfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
@ComponentScan(basePackages = {"com.baeldung.springbootconfiguration.*"})
@SpringBootConfiguration
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@Bean
public PersonService personService() {
return new PersonServiceImpl();
}
}
@@ -0,0 +1,4 @@
package com.baeldung.springbootconfiguration;
public interface PersonService {
}
@@ -0,0 +1,4 @@
package com.baeldung.springbootconfiguration;
public class PersonServiceImpl implements PersonService {
}