Spring annotations article (#4232)

* Spring annotations

* commented VehicleFactoryApplication to fix CI build
This commit is contained in:
fanatixan
2018-05-12 22:43:12 +02:00
committed by maibin
parent 5c4fe46ea2
commit 506962bc96
16 changed files with 301 additions and 0 deletions
@@ -0,0 +1,20 @@
package com.baeldung.annotations;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.context.annotation.DependsOn;
@DependsOn
public class Bike implements Vehicle {
private String color;
@Required
public void setColor(String color) {
this.color = color;
}
public String getColor() {
return color;
}
}