module changed

This commit is contained in:
vatsalgosar
2019-07-26 02:01:33 +05:30
parent eaa0c63620
commit ba8d468603
8 changed files with 13 additions and 77 deletions
@@ -0,0 +1,23 @@
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;
import com.baeldung.springbootconfiguration.ServiceImpl.PersonServiceImpl;
import com.baeldung.springbootconfiguration.service.PersonService;
@ComponentScan(basePackages = { "com.baeldung.*" })
@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,6 @@
package com.baeldung.springbootconfiguration.ServiceImpl;
import com.baeldung.springbootconfiguration.service.PersonService;
public class PersonServiceImpl implements PersonService {
}
@@ -0,0 +1,4 @@
package com.baeldung.springbootconfiguration.service;
public interface PersonService {
}