package com.mortals.xhx.module.demo;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

@Component
@ConditionalOnProperty(prefix="config",name = "data", havingValue = "two")
public class BackCategoryRepositoryTwoImpl implements BackCategoryRepository {
    @Override
    public String getBackCategoryDetail(long backCategoryId) {
        return "two";
    }
}
