JAVA-31190: Preparation for migrating spring-boot-modules to version 3. (#15834)
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>${hibernate.core.version}</version>
|
||||
</dependency>
|
||||
<!--Test -->
|
||||
<dependency>
|
||||
@@ -49,8 +50,15 @@
|
||||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
<artifactId>mockito-inline</artifactId>
|
||||
<version>${mockito.inline.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
<hibernate.core.version>6.4.2.Final</hibernate.core.version>
|
||||
<mockito.inline.version>5.2.0</mockito.inline.version>
|
||||
<start-class>com.baeldung.annotations.VehicleFactoryApplication</start-class>
|
||||
</properties>
|
||||
|
||||
</project>
|
||||
+4
-2
@@ -1,6 +1,5 @@
|
||||
package com.baeldung.annotations;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Required;
|
||||
import org.springframework.context.annotation.DependsOn;
|
||||
|
||||
@DependsOn
|
||||
@@ -8,7 +7,10 @@ public class Bike implements Vehicle {
|
||||
|
||||
private String color;
|
||||
|
||||
@Required
|
||||
public Bike(String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public void setColor(String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user