Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

springboot: SupplierConfig,OaSupplierConfig 装配好像冲突了 #30

Open
zundaren opened this issue Dec 5, 2024 · 0 comments
Open

Comments

@zundaren
Copy link

zundaren commented Dec 5, 2024

        <dependency>
            <groupId>org.dromara.sms4j</groupId>
            <artifactId>sms4j-spring-boot-starter</artifactId>
            <version>3.3.3</version>
        </dependency>

        <dependency>
            <groupId>org.dromara.sms4j</groupId>
            <artifactId>sms4j-oa-core</artifactId>
            <version> 3.3.3 </version>
        </dependency>


  @Bean
    @ConfigurationProperties(
        prefix = "sms.blends"
    )
    @ConditionalOnProperty(
        prefix = "sms",
        name = {"config-type"},
        havingValue = "yaml"
    )
    protected Map<String, Map<String, Object>> blends() {
        return new LinkedHashMap();
    }


    /**
     * 注入配置
     */
    @Bean
    @ConfigurationProperties(prefix = "sms-oa.oas")
    @ConditionalOnProperty(prefix = "sms-oa", name = "config-type", havingValue = "yaml")
    protected Map<String, Map<String, Object>> oas() {
        return new LinkedHashMap<>();
    }

image
两个map好像冲突了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant