Merge pull request #7297 from vatsalgosar/BAEL-2728

BAEL-2728 | vatsalgosar@gmail.com
This commit is contained in:
Eric Martin 2019-07-31 21:42:18 -05:00 committed by GitHub
commit f3dd83f488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 0 deletions

View File

@ -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();
}
}

View File

@ -0,0 +1,4 @@
package com.baeldung.springbootconfiguration;
public interface PersonService {
}

View File

@ -0,0 +1,4 @@
package com.baeldung.springbootconfiguration;
public class PersonServiceImpl implements PersonService {
}