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

allow @ConditionalOnProperty work with configuration from microservice.yaml

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment