I need to import a trust-store in Spring Boot without using System.setProperty, but only the application.properties file.
This is the structure of my project:

I add this string: server.ssl.trust-store = cacerts, but when i run the spring boot application i have this error message:
ERROR 6576 --- [ main] o.s.boot.SpringApplication : Application startup failed java.lang.IllegalArgumentException: Resource location must not be null
Someone have solved this?
I found the solution, the property file need value for trust and key store not for only one of this, if one of this property is null the application throws exception
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With