Announcement Announcement Module
Collapse
No announcement yet.
How to inject a file in springframework? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to inject a file in springframework?

    I am trying to find a way to inject a file in Spring. How do I do it? I have tried this approach such as the following but does not work :

    Code:
    <bean id="image" class="java.io.File">
    		  <constructor-arg  value="classpath:some/path/toimage/somename.gif"/>
    	</bean>


    This does not work. Any help?

    thanks

  • #2
    Hi, look at here: http://forum.springsource.org/showthread.php?t=56394

    Comment

    Working...
    X