Delete Car.java
This commit is contained in:
parent
1b18720fb3
commit
c0220b2a34
|
@ -1,18 +0,0 @@
|
||||||
package com.baeldung.beaninjectiontypes;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
@Component
|
|
||||||
public class Car {
|
|
||||||
@Autowired
|
|
||||||
private Engine engine;
|
|
||||||
|
|
||||||
public void setEngine(Engine engine) {
|
|
||||||
this.engine = engine;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Engine getEngine() {
|
|
||||||
return engine;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue