Spring Condition not able to read value from property file

后端 未结 4 927
耶瑟儿~
耶瑟儿~ 2021-01-11 13:24

I am trying to implement Spring Condition org.springframework.context.annotation.Conditionas follows:

public class APIScanningDecisionMaker impl         


        
4条回答
  •  佛祖请我去吃肉
    2021-01-11 13:50

    Maybe spring doesn't know the file ?

    This can be fix on annotated your class where the @Value("${swagger.scanner.can.run}")is used :

    @PropertySource(value="classpath:config.properties")
    

    Regards,

提交回复
热议问题