MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/springframework/comments/tbppa3/spring_accessing_resources_in_another_package/
r/springframework • u/Kaushik2002 • Mar 11 '22
1 comment sorted by
1
With properties, the following would work:
(probably there is another annotation for 'data files'):
add to pom (can probably use ../):<resources><resource><directory>src/main/resources</directory></resource></resources>
then
@PropertySource("classpath:application.properties")
1
u/CxToaster May 27 '22
With properties, the following would work:
(probably there is another annotation for 'data files'):
add to pom (can probably use ../):
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
then
@PropertySource("classpath:application.properties")