Package org.springframework.data

Examples of org.springframework.data.LocalFileStorage


    private ResourceLoader resourceLoader;

    @Bean
    public FileStorage pictureStorage() {
      String applicationUrl = environment.getProperty("application.url");
      LocalFileStorage pictureStorage = new LocalFileStorage(applicationUrl + "/resources/", resourceLoader.getResource("/resources/"));
      pictureStorage.setDeleteOnExit(true);
      return pictureStorage;
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.LocalFileStorage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.