Subversion Repositories SmartDukaan

Rev

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

Rev 32198 Rev 32200
Line 13... Line 13...
13
import com.spice.profitmandi.dao.convertor.LocalDateTimeJsonConverter;
13
import com.spice.profitmandi.dao.convertor.LocalDateTimeJsonConverter;
14
import org.apache.logging.log4j.LogManager;
14
import org.apache.logging.log4j.LogManager;
15
import org.apache.logging.log4j.Logger;
15
import org.apache.logging.log4j.Logger;
16
import org.apache.velocity.app.VelocityEngine;
16
import org.apache.velocity.app.VelocityEngine;
17
import org.apache.velocity.exception.VelocityException;
17
import org.apache.velocity.exception.VelocityException;
18
import org.apache.velocity.tools.generic.EscapeTool;
-
 
19
import org.springframework.context.annotation.Bean;
18
import org.springframework.context.annotation.Bean;
20
import org.springframework.context.annotation.ComponentScan;
19
import org.springframework.context.annotation.ComponentScan;
21
import org.springframework.context.annotation.Configuration;
20
import org.springframework.context.annotation.Configuration;
22
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
21
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
23
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
22
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
Line 95... Line 94...
95
        attributesMap.put("dateTimeFormatter", dateTimeFormatter);
94
        attributesMap.put("dateTimeFormatter", dateTimeFormatter);
96
        attributesMap.put("version", "172");
95
        attributesMap.put("version", "172");
97
        attributesMap.put("cssVersion", "10");
96
        attributesMap.put("cssVersion", "10");
98
        attributesMap.put("isDev", getActiveProfile().equals("dev"));
97
        attributesMap.put("isDev", getActiveProfile().equals("dev"));
99
        attributesMap.put("vmUtils", new Utils());
98
        attributesMap.put("vmUtils", new Utils());
100
        attributesMap.put("esc", new EscapeTool());
99
        //attributesMap.put("esc", new EscapeTool());
101
        attributesMap.put("ru", RoundingMode.HALF_UP);
100
        attributesMap.put("ru", RoundingMode.HALF_UP);
102
        return attributesMap;
101
        return attributesMap;
103
    }
102
    }
104
 
103
 
105
    @Bean
104
    @Bean