module changed
This commit is contained in:
parent
eaa0c63620
commit
ba8d468603
@ -1,6 +0,0 @@
|
|||||||
Article:
|
|
||||||
SprintBootConfiguration annotation
|
|
||||||
|
|
||||||
commands:
|
|
||||||
mvn clean install
|
|
||||||
mvn spring-boot:run
|
|
@ -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>
|
|
@ -1,6 +0,0 @@
|
|||||||
package com.baeldung.ServiceImpl;
|
|
||||||
|
|
||||||
import com.baeldung.service.PersonService;
|
|
||||||
|
|
||||||
public class PersonServiceImpl implements PersonService {
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
package com.baeldung.service;
|
|
||||||
|
|
||||||
public interface PersonService {
|
|
||||||
}
|
|
@ -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() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,12 +1,12 @@
|
|||||||
package com.baeldung;
|
package com.baeldung.springbootconfiguration;
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.SpringBootConfiguration;
|
import org.springframework.boot.SpringBootConfiguration;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
import org.springframework.context.annotation.ComponentScan;
|
||||||
|
|
||||||
import com.baeldung.ServiceImpl.PersonServiceImpl;
|
import com.baeldung.springbootconfiguration.ServiceImpl.PersonServiceImpl;
|
||||||
import com.baeldung.service.PersonService;
|
import com.baeldung.springbootconfiguration.service.PersonService;
|
||||||
|
|
||||||
@ComponentScan(basePackages = { "com.baeldung.*" })
|
@ComponentScan(basePackages = { "com.baeldung.*" })
|
||||||
@SpringBootConfiguration
|
@SpringBootConfiguration
|
@ -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 {
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user