* JAVA-19545 Move articles from spring-core-2 module to spring-di-3 module * JAVA-19545 Move articles from spring-core-4 module to spring-di-3 module
16 lines
326 B
Java
16 lines
326 B
Java
package com.baeldung.order;
|
|
|
|
import org.springframework.core.Ordered;
|
|
import org.springframework.core.annotation.Order;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Component
|
|
@Order(Ordered.LOWEST_PRECEDENCE)
|
|
public class Average implements Rating {
|
|
|
|
@Override
|
|
public int getRating() {
|
|
return 3;
|
|
}
|
|
}
|