GithubHelp home page GithubHelp logo

Comments (5)

jbellmann avatar jbellmann commented on June 30, 2024 1

I will have a look next week.

from catwatch.

duergner avatar duergner commented on June 30, 2024 1

@linki @jbellmann I did a minimal test and my conclusion would be that @Profile({"!test", "!k8s}) means that the component will be registered if not both profiles are active. That matches my understanding of the docu as well:

If a given profile is prefixed with the NOT operator (!), the annotated component will be registered if the profile is not active; for example, given @Profile({"p1", "!p2"}), registration will occur if profile 'p1' is active or if profile 'p2' is not active.

from catwatch.

duergner avatar duergner commented on June 30, 2024

@jbellmann could you already have a look at this? Could someone else support you there?

from catwatch.

linki avatar linki commented on June 30, 2024

@duergner I'm curious about the or in the docs above. Does setting @Profile({"!test", "!k8s}) translate to?

given @Profile({"!test", "!k8s"}), registration will occur if profile 'test' is not active or if profile 'k8s' is not active.

Because this would mean it's activated whenever we don't run with the test profile, regardless of whether we're using the k8s profile or not.

from catwatch.

duergner avatar duergner commented on June 30, 2024

That's my interpretation which also matches my observations from doing some testing with a minimal Spring Boot application.

from catwatch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.