I want to sperate some security fields such as usernames or passwords from my main application.yml file . in fact I want 2 yml file in my project , one for main configs and other for security fields. Is there any way to do that ?
smaple:
Main yml file:
spring:
application:
name: My project
datasource:
driverClassName: com.ibm.db2.jcc.DB2Driver
username: username
password: password
url: url
.....
security.yml
username: "username"
password: "password"
....