Skip to content

how can i achieve early initialization of beans like spring @configuration #6445

Answered by sdyava
sdyava asked this question in Q&A
Discussion options

You must be logged in to vote

sorry i meant creating bean like this

@bean
public Properties entityManagerFactory() {

System.setProperty("javax.net.ssl.trustStore", trustStore);
System.setProperty("javax.net.ssl.trustStorePassword", trustStorePwd);
System.setProperty("javax.net.ssl.keyStore", keyStore);
System.setProperty("javax.net.ssl.keyStorePassword", keyStorePwd);
System.setProperty("javax.net.ssl.trustStoreType", "jks");




return System.getProperties();

}

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@graemerocher
Comment options

@sdyava
Comment options

@sdyava
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sdyava
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants