Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-2165

allow @ConditionalOnProperty work with configuration from microservice.yaml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Done
    • None
    • java-chassis-2.1.5
    • Java-Chassis
    • None

    Description

      @ConditionalOnProperty is provided by springboot  

      and @Conditional is provided by spring  

       

      implement EnvironmentPostProcessor to load microservice.yaml earlier

       

      this solution only work when run with springboot, not spring  

      because can not find a way to load microservice.yaml to spring before @Conditional logic run

      Attachments

        Issue Links

          Activity

            People

              wujimin Jimin Wu
              wujimin Jimin Wu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: