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?:
@Component
@Getter
@Setter
@ConfigurationProperties(prefix="payment-import")
public class BankAccountConfig {
private List<BankAccount> bankAccounts;

}
@Component
@Getter
@Setter
@ConfigurationProperties(prefix="payment-import")
public class BankAccountConfig {
private List<BankAccount> bankAccounts;

}
No description
12 Replies
JavaBot
JavaBot6mo ago
This post has been reserved for your question.
Hey @bambyzas! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
dan1st
dan1st6mo ago
these things typically come from an application.yml
bambyzas
bambyzasOP6mo ago
i know. but i cant fkin find anything im losing my mind
dan1st
dan1st6mo ago
find anything on what?
bambyzas
bambyzasOP6mo ago
where do values for BankAccountConfig are coming from
dan1st
dan1st6mo ago
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)
bambyzas
bambyzasOP6mo ago
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
dan1st
dan1st6mo ago
Is there anything starting with payment-import or similar? Is there anything like spring.profiles.active?
bambyzas
bambyzasOP6mo ago
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 level
dan1st
dan1st6mo ago
Do you have an application-dev.yml?
bambyzas
bambyzasOP6mo ago
yep also checked in here omg found it. it was in appliatoin.yml
JavaBot
JavaBot6mo ago
Post Closed
This post has been closed by <@611623200756989972>.
Want results from more Discord servers?
Add your server