- remove
@PropertySource
annotation, you not need it - rename your
scheduling.yml
intosrc/main/resources/application-scheduling.yml
-
add in
src/main/resources/application.yml
file next line:spring.profiles.include: 'scheduling'
@PropertySource
annotation, you not need itscheduling.yml
into src/main/resources/application-scheduling.yml
add in src/main/resources/application.yml
file next line:
spring.profiles.include: 'scheduling'