| Line 26... |
Line 26... |
| 26 |
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
26 |
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
| 27 |
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
|
27 |
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
|
| 28 |
import org.springframework.core.io.ClassPathResource;
|
28 |
import org.springframework.core.io.ClassPathResource;
|
| 29 |
import org.springframework.core.io.Resource;
|
29 |
import org.springframework.core.io.Resource;
|
| 30 |
import org.springframework.mail.javamail.JavaMailSender;
|
30 |
import org.springframework.mail.javamail.JavaMailSender;
|
| - |
|
31 |
import com.spice.profitmandi.common.services.AuthenticatedIdentityMailSender;
|
| 31 |
import org.springframework.mail.javamail.JavaMailSenderImpl;
|
32 |
import org.springframework.mail.javamail.JavaMailSenderImpl;
|
| 32 |
import org.springframework.ui.velocity.VelocityEngineFactoryBean;
|
33 |
import org.springframework.ui.velocity.VelocityEngineFactoryBean;
|
| 33 |
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
|
34 |
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
|
| 34 |
import org.springframework.web.servlet.ViewResolver;
|
35 |
import org.springframework.web.servlet.ViewResolver;
|
| 35 |
import org.springframework.web.servlet.view.BeanNameViewResolver;
|
36 |
import org.springframework.web.servlet.view.BeanNameViewResolver;
|
| Line 101... |
Line 102... |
| 101 |
attributesMap.put("dateMonthYearFormatter", dateMonthYearFormatter);
|
102 |
attributesMap.put("dateMonthYearFormatter", dateMonthYearFormatter);
|
| 102 |
attributesMap.put("dateMonthChYear", dateMonthChYear);
|
103 |
attributesMap.put("dateMonthChYear", dateMonthChYear);
|
| 103 |
attributesMap.put("decimalFormatter", decimalFormatter);
|
104 |
attributesMap.put("decimalFormatter", decimalFormatter);
|
| 104 |
attributesMap.put("noData", "<tr><td colspan=\"20\" style=\"text-align:center;\">No results found for the given criteria</td></tr>");
|
105 |
attributesMap.put("noData", "<tr><td colspan=\"20\" style=\"text-align:center;\">No results found for the given criteria</td></tr>");
|
| 105 |
attributesMap.put("dateTimeFormatter", dateTimeFormatter);
|
106 |
attributesMap.put("dateTimeFormatter", dateTimeFormatter);
|
| 106 |
attributesMap.put("version", "407");
|
107 |
attributesMap.put("version", "408");
|
| 107 |
attributesMap.put("cssVersion", "52");
|
108 |
attributesMap.put("cssVersion", "52");
|
| 108 |
attributesMap.put("isDev", getActiveProfile().equals("dev"));
|
109 |
attributesMap.put("isDev", getActiveProfile().equals("dev"));
|
| 109 |
attributesMap.put("vmUtils", new Utils());
|
110 |
attributesMap.put("vmUtils", new Utils());
|
| 110 |
//attributesMap.put("esc", new EscapeTool());
|
111 |
//attributesMap.put("esc", new EscapeTool());
|
| 111 |
attributesMap.put("ru", RoundingMode.HALF_UP);
|
112 |
attributesMap.put("ru", RoundingMode.HALF_UP);
|
| Line 250... |
Line 251... |
| 250 |
}
|
251 |
}
|
| 251 |
|
252 |
|
| 252 |
|
253 |
|
| 253 |
@Bean
|
254 |
@Bean
|
| 254 |
public JavaMailSender googleMailSender() {
|
255 |
public JavaMailSender googleMailSender() {
|
| 255 |
JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
|
256 |
JavaMailSenderImpl mailSender = new AuthenticatedIdentityMailSender();
|
| 256 |
mailSender.setHost("smtp.gmail.com");
|
257 |
mailSender.setHost("smtp.gmail.com");
|
| 257 |
mailSender.setPort(465);
|
258 |
mailSender.setPort(465);
|
| 258 |
mailSender.setUsername("sdtech@smartdukaan.com");
|
259 |
mailSender.setUsername("sdtech@smartdukaan.com");
|
| 259 |
mailSender.setPassword("wbdwyqrcgosrkwdn"); // App Password
|
260 |
mailSender.setPassword("wbdwyqrcgosrkwdn"); // App Password
|
| 260 |
|
261 |
|