java - File storage in Spring -
i save files uploaded form folder in spring 3 application. i'm rookie this, don't know how started. files must java file format.
here's how can define absolute path temporary directory using system properties , spring expression language:
<!-- package shortened readability --> <bean id="multipartresolver" class="org.springframework....commonsmultipartresolver"> <property name="uploadtempdir" value="#{ systemproperties['java.io.tmpdir'] }/yourwebapp/upload"/> </bean>
reference:
- system properties , spring expression language
- system.getproperties() (includes reference
java.io.tmpdir
)
Comments
Post a Comment