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