Subversion Repositories SmartDukaan

Rev

Rev 23568 | Rev 25300 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23568 Rev 24472
Line -... Line 1...
-
 
1
 
1
package com.spice.profitmandi.web.config;
2
package com.spice.profitmandi.web.config;
2
 
3
 
3
import java.io.IOException;
4
import java.io.IOException;
4
import java.util.Properties;
5
import java.util.Properties;
5
 
6
 
6
import org.apache.logging.log4j.Logger;
7
import javax.servlet.MultipartConfigElement;
-
 
8
 
7
import org.apache.logging.log4j.LogManager;
9
import org.apache.logging.log4j.LogManager;
-
 
10
import org.apache.logging.log4j.Logger;
8
import org.springframework.context.annotation.Bean;
11
import org.springframework.context.annotation.Bean;
9
import org.springframework.context.annotation.ComponentScan;
12
import org.springframework.context.annotation.ComponentScan;
10
import org.springframework.context.annotation.Configuration;
13
import org.springframework.context.annotation.Configuration;
11
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
14
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
12
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
15
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
Line 53... Line 56...
53
	}
56
	}
54
 
57
 
55
	@Bean(name="multipartResolver")
58
	@Bean(name="multipartResolver")
56
	public CommonsMultipartResolver getCommonsMultipartResolver() {
59
	public CommonsMultipartResolver getCommonsMultipartResolver() {
57
		LOGGER.info("creating common multipart resolver bean");
60
		LOGGER.info("creating common multipart resolver bean");
-
 
61
		CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver();
-
 
62
		multipartResolver.setMaxUploadSizePerFile(5000000);
-
 
63
		multipartResolver.setMaxUploadSize(5000000);
58
		return new CommonsMultipartResolver();
64
		return multipartResolver;
59
	}
65
	}
60
 
66
 
61
	@Bean
67
	@Bean
62
	public PropertySourcesPlaceholderConfigurer propertyConfigurer1() {
68
	public PropertySourcesPlaceholderConfigurer propertyConfigurer1() {
63
		String activeProfile;
69
		String activeProfile;
Line 105... Line 111...
105
         
111
         
106
        mailSender.setJavaMailProperties(javaMailProperties);
112
        mailSender.setJavaMailProperties(javaMailProperties);
107
        return mailSender;
113
        return mailSender;
108
    }
114
    }
109
	
115
	
-
 
116
	
110
}
117
}
111
118