Say, I have the following bean in Spring context:
<bean class="some.class.BlabBlahBlah">
<property name="location" value="classpath:somefile.xml"/>
</bean>
Currently somefile.xml
is placed in the src/main/java
, but I'd like to place it somewhere in the file system. Is there a way to do that? I tried to set full path instead of this classpath:
but it didn't work. Thanks in advance.
By reference (Table 4.1), you should probably use a file system resource path:
<property name="location" value="file:/path/to/file.xml" />
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