Cleanup
This commit is contained in:
parent
a32db2581f
commit
2375eda92c
|
@ -14,11 +14,6 @@
|
|||
<artifactId>spring-context</artifactId>
|
||||
<version>4.2.6.RELEASE</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.inject</groupId>
|
||||
<artifactId>javax.inject</artifactId>
|
||||
<version>1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
package com.baeldung.spring;
|
||||
|
||||
import com.baeldung.spring.domain.Car;
|
||||
import com.baeldung.spring.domain.Engine;
|
||||
import com.baeldung.spring.domain.Transmission;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import com.baeldung.spring.domain.Engine;
|
||||
import com.baeldung.spring.domain.Transmission;
|
||||
|
||||
@Configuration
|
||||
@ComponentScan("com.baeldung.spring")
|
||||
public class Config {
|
||||
|
|
|
@ -3,9 +3,6 @@ package com.baeldung.spring.domain;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Named;
|
||||
|
||||
@Component
|
||||
public class Car {
|
||||
private Engine engine;
|
||||
|
|
Loading…
Reference in New Issue