where do config values come from?
usually in configs you have smth like this: . where you specify from where the value comes from. in this screenshot it comes from application.yaml file. but idk where it comes from in my BankAccountConfig?:
12 Replies
⌛
This post has been reserved for your question.
Hey @bambyzas! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
these things typically come from an application.yml
i know. but i cant fkin find anything
im losing my mind
find anything on what?
where do values for BankAccountConfig are coming from
Can you show your application.properties or application.yml?
Are you passing any system properties with
-D
or setting any environment variables?
(I'm especially interesting in anything related to active Spring profiles)crap, cant show you, bc a lot of sensitive data
id need to rename a lot of stuff to smth random
but i get ur idea
maybe indeed values are coming from env vars
since there is a prefix, there should be external config with these prefixes, fields and corresponding values
Is there anything starting with
payment-import
or similar?
Is there anything like spring.profiles.active
?git repo, shell script, project name. but nothing else related to config
#--spring.profiles.active=dev
in .service
file.
it obv creates service on OS levelDo you have an
application-dev.yml
?yep
also checked in here
omg
found it. it was in appliatoin.yml
Post Closed
This post has been closed by <@611623200756989972>.