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

View File

@ -1,6 +0,0 @@
Article:
SprintBootConfiguration annotation
commands:
mvn clean install
mvn spring-boot:run

View File

@ -1,42 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.baeldung</groupId>
<artifactId>spring-boot-configuration</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>spring-boot-configuration</name>
<description>Demo project for Spring Boot Configuration</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,6 +0,0 @@
package com.baeldung.ServiceImpl;
import com.baeldung.service.PersonService;
public class PersonServiceImpl implements PersonService {
}

View File

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

View File

@ -1,16 +0,0 @@
package com.baeldung;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class ApplicationTests {
@Test
public void contextLoads() {
}
}

View File

@ -1,12 +1,12 @@
package com.baeldung;
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.ServiceImpl.PersonServiceImpl;
import com.baeldung.service.PersonService;
import com.baeldung.springbootconfiguration.ServiceImpl.PersonServiceImpl;
import com.baeldung.springbootconfiguration.service.PersonService;
@ComponentScan(basePackages = { "com.baeldung.*" })
@SpringBootConfiguration

View File

@ -0,0 +1,6 @@
package com.baeldung.springbootconfiguration.ServiceImpl;
import com.baeldung.springbootconfiguration.service.PersonService;
public class PersonServiceImpl implements PersonService {
}

View File

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