| Line 21... |
Line 21... |
| 21 |
import com.spice.profitmandi.dao.convertor.LocalDateTimeJsonConverter;
|
21 |
import com.spice.profitmandi.dao.convertor.LocalDateTimeJsonConverter;
|
| 22 |
import org.apache.logging.log4j.LogManager;
|
22 |
import org.apache.logging.log4j.LogManager;
|
| 23 |
import org.apache.logging.log4j.Logger;
|
23 |
import org.apache.logging.log4j.Logger;
|
| 24 |
import org.apache.velocity.app.VelocityEngine;
|
24 |
import org.apache.velocity.app.VelocityEngine;
|
| 25 |
import org.apache.velocity.exception.VelocityException;
|
25 |
import org.apache.velocity.exception.VelocityException;
|
| 26 |
import org.springframework.context.annotation.Bean;
|
26 |
import org.springframework.context.annotation.*;
|
| 27 |
import org.springframework.context.annotation.ComponentScan;
|
- |
|
| 28 |
import org.springframework.context.annotation.Lazy;
|
- |
|
| 29 |
import org.springframework.context.annotation.Configuration;
|
- |
|
| 30 |
import org.springframework.context.annotation.Primary;
|
- |
|
| 31 |
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
27 |
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
| 32 |
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
|
28 |
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
|
| 33 |
import org.springframework.core.io.ClassPathResource;
|
29 |
import org.springframework.core.io.ClassPathResource;
|
| 34 |
import org.springframework.core.io.Resource;
|
30 |
import org.springframework.core.io.Resource;
|
| 35 |
import org.springframework.mail.javamail.JavaMailSender;
|
31 |
import org.springframework.mail.javamail.JavaMailSender;
|
| 36 |
import org.springframework.mail.javamail.JavaMailSenderImpl;
|
- |
|
| 37 |
import org.springframework.ui.velocity.VelocityEngineFactoryBean;
|
32 |
import org.springframework.ui.velocity.VelocityEngineFactoryBean;
|
| 38 |
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
|
33 |
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
|
| 39 |
import org.springframework.web.servlet.ViewResolver;
|
34 |
import org.springframework.web.servlet.ViewResolver;
|
| 40 |
import org.springframework.web.servlet.view.BeanNameViewResolver;
|
35 |
import org.springframework.web.servlet.view.BeanNameViewResolver;
|
| 41 |
import org.springframework.web.servlet.view.velocity.VelocityConfigurer;
|
36 |
import org.springframework.web.servlet.view.velocity.VelocityConfigurer;
|
| Line 111... |
Line 106... |
| 111 |
attributesMap.put("dateMonthYearFormatter", dateMonthYearFormatter);
|
106 |
attributesMap.put("dateMonthYearFormatter", dateMonthYearFormatter);
|
| 112 |
attributesMap.put("dateMonthChYear", dateMonthChYear);
|
107 |
attributesMap.put("dateMonthChYear", dateMonthChYear);
|
| 113 |
attributesMap.put("decimalFormatter", decimalFormatter);
|
108 |
attributesMap.put("decimalFormatter", decimalFormatter);
|
| 114 |
attributesMap.put("noData", "<tr><td colspan=\"20\" style=\"text-align:center;\">No results found for the given criteria</td></tr>");
|
109 |
attributesMap.put("noData", "<tr><td colspan=\"20\" style=\"text-align:center;\">No results found for the given criteria</td></tr>");
|
| 115 |
attributesMap.put("dateTimeFormatter", dateTimeFormatter);
|
110 |
attributesMap.put("dateTimeFormatter", dateTimeFormatter);
|
| 116 |
attributesMap.put("version", "443");
|
111 |
attributesMap.put("version", "444");
|
| 117 |
attributesMap.put("cssVersion", "53");
|
112 |
attributesMap.put("cssVersion", "54");
|
| 118 |
attributesMap.put("isDev", getActiveProfile().equals("dev"));
|
113 |
attributesMap.put("isDev", getActiveProfile().equals("dev"));
|
| 119 |
attributesMap.put("vmUtils", new Utils());
|
114 |
attributesMap.put("vmUtils", new Utils());
|
| 120 |
//attributesMap.put("esc", new EscapeTool());
|
115 |
//attributesMap.put("esc", new EscapeTool());
|
| 121 |
attributesMap.put("ru", RoundingMode.HALF_UP);
|
116 |
attributesMap.put("ru", RoundingMode.HALF_UP);
|
| 122 |
return attributesMap;
|
117 |
return attributesMap;
|