Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Configuration
- @EnableFilesystemStores
- public class AudioConfiguration {
- private static Path filesystemRoot() {
- return Paths.get("src", "main", "java", "com", "example", "demo2", "sounds");
- }
- @Bean
- public FileSystemResourceLoader fsResourceLoader() throws Exception {
- return new FileSystemResourceLoader(filesystemRoot().toAbsolutePath().toString());
- }
- public static Path getPath() {
- return filesystemRoot();
- }
- }
- @StoreRestResource(path = "sounds")
- public interface SoundsContentStore extends Store<String> {
- }
- // .properties
- spring.servlet.multipart.max-file-size=200MB
- spring.servlet.multipart.max-request-size=215MB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement