Answer the question
In order to leave comments, you need to log in
Problem with context:property-placeholder. It refuses to work. What should I do?
I have a musicPlayer.properties config file. It has the following code.
musicPlayer.name = some namespace
musicPlayer.volume = 70
<context:property-placeholder location="classpath:musicPlayer.properties"/>
<bean id="musicPlayer"
class="ru.dyupich.course.TheMusicInterfaceRealisation.MusicPlayer">
<property name="music" ref="musicBean"/>
<property name="name" value="%{musicPlayer.name}"/>
<property name="volume" value="%{musicPlayer.volume}"/>
</bean>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question