| Line 101... |
Line 101... |
| 101 |
attributesMap.put("dateMonthYearFormatter", dateMonthYearFormatter);
|
101 |
attributesMap.put("dateMonthYearFormatter", dateMonthYearFormatter);
|
| 102 |
attributesMap.put("dateMonthChYear", dateMonthChYear);
|
102 |
attributesMap.put("dateMonthChYear", dateMonthChYear);
|
| 103 |
attributesMap.put("decimalFormatter", decimalFormatter);
|
103 |
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>");
|
104 |
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);
|
105 |
attributesMap.put("dateTimeFormatter", dateTimeFormatter);
|
| 106 |
attributesMap.put("version", "405");
|
106 |
attributesMap.put("version", "406");
|
| 107 |
attributesMap.put("cssVersion", "52");
|
107 |
attributesMap.put("cssVersion", "52");
|
| 108 |
attributesMap.put("isDev", getActiveProfile().equals("dev"));
|
108 |
attributesMap.put("isDev", getActiveProfile().equals("dev"));
|
| 109 |
attributesMap.put("vmUtils", new Utils());
|
109 |
attributesMap.put("vmUtils", new Utils());
|
| 110 |
//attributesMap.put("esc", new EscapeTool());
|
110 |
//attributesMap.put("esc", new EscapeTool());
|
| 111 |
attributesMap.put("ru", RoundingMode.HALF_UP);
|
111 |
attributesMap.put("ru", RoundingMode.HALF_UP);
|
| Line 240... |
Line 240... |
| 240 |
props.put("mail.smtp.auth", "false");
|
240 |
props.put("mail.smtp.auth", "false");
|
| 241 |
props.put("mail.smtp.localhost", "smartdukaan.com");
|
241 |
props.put("mail.smtp.localhost", "smartdukaan.com");
|
| 242 |
props.put("mail.smtp.ssl.protocols", "TLSv1.2");
|
242 |
props.put("mail.smtp.ssl.protocols", "TLSv1.2");
|
| 243 |
props.put("mail.smtp.ssl.trust", "smtp-relay.gmail.com");
|
243 |
props.put("mail.smtp.ssl.trust", "smtp-relay.gmail.com");
|
| 244 |
props.put("mail.transport.protocol", "smtp");
|
244 |
props.put("mail.transport.protocol", "smtp");
|
| 245 |
props.put("mail.smtp.connectiontimeout", "10000");
|
245 |
props.put("mail.smtp.connectiontimeout", "30000");
|
| 246 |
props.put("mail.smtp.timeout", "10000");
|
246 |
props.put("mail.smtp.timeout", "120000");
|
| 247 |
props.put("mail.smtp.writetimeout", "10000");
|
247 |
props.put("mail.smtp.writetimeout", "120000");
|
| 248 |
|
248 |
|
| 249 |
return mailSender;
|
249 |
return mailSender;
|
| 250 |
}
|
250 |
}
|
| 251 |
|
251 |
|
| 252 |
|
252 |
|
| Line 262... |
Line 262... |
| 262 |
props.put("mail.smtp.auth", "true");
|
262 |
props.put("mail.smtp.auth", "true");
|
| 263 |
props.put("mail.smtp.ssl.enable", "true");
|
263 |
props.put("mail.smtp.ssl.enable", "true");
|
| 264 |
props.put("mail.smtp.ssl.trust", "smtp.gmail.com");
|
264 |
props.put("mail.smtp.ssl.trust", "smtp.gmail.com");
|
| 265 |
props.put("mail.smtp.socketFactory.port", "465");
|
265 |
props.put("mail.smtp.socketFactory.port", "465");
|
| 266 |
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
|
266 |
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
|
| 267 |
props.put("mail.smtp.connectiontimeout", "10000");
|
267 |
props.put("mail.smtp.connectiontimeout", "30000");
|
| 268 |
props.put("mail.smtp.timeout", "10000");
|
268 |
props.put("mail.smtp.timeout", "120000");
|
| 269 |
props.put("mail.smtp.writetimeout", "10000");
|
269 |
props.put("mail.smtp.writetimeout", "120000");
|
| 270 |
|
270 |
|
| 271 |
return mailSender;
|
271 |
return mailSender;
|
| 272 |
}
|
272 |
}
|
| 273 |
|
273 |
|
| 274 |
@Bean(name = "gson")
|
274 |
@Bean(name = "gson")
|