|
|
@ -16,6 +16,7 @@ import org.springframework.beans.BeanUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Qualifier; |
|
|
import org.springframework.beans.factory.annotation.Qualifier; |
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
|
|
import org.springframework.stereotype.Component; |
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
import java.util.*; |
|
|
@ -32,6 +33,7 @@ import java.util.stream.Collectors; |
|
|
* 后续对接真实算法时,替换此实现即可,调用方无需改动 |
|
|
* 后续对接真实算法时,替换此实现即可,调用方无需改动 |
|
|
*/ |
|
|
*/ |
|
|
@Component |
|
|
@Component |
|
|
|
|
|
@ConditionalOnProperty(value = "classicpaper.algorithm.enabled", havingValue = "false", matchIfMissing = true) |
|
|
@Slf4j |
|
|
@Slf4j |
|
|
public class FallbackClassicPaperQuestionGenerator implements ClassicPaperQuestionGenerator { |
|
|
public class FallbackClassicPaperQuestionGenerator implements ClassicPaperQuestionGenerator { |
|
|
|
|
|
|
|
|
|