0

以下のコードは Spring Boot 1.5.3 で動作しますが、2.4.4 では失敗します

    @DependsOn({"abcd"})
    public PropertyOverrideConfigurer propertyOverrideConfigurer() {
        PropertyOverrideConfigurer p = new PropertyOverrideConfigurer();
        Properties properties = new Properties();
        properties.setProperty("abcd.efgh", "true");
        p.setProperties(properties);
        return p;
    }
    
    @Bean
    public Abcd abcd(){
        return new Abcd();
    }

以下のエラーで失敗します

Description:

A component required a bean named 'abcd' that could not be found.


Action:

Consider defining a bean named 'abcd' in your configuration.

4

0 に答える 0