Subversion Repositories SmartDukaan

Rev

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

Rev 32187 Rev 32198
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;
18
import org.springframework.context.annotation.Bean;
19
import org.springframework.context.annotation.Bean;
19
import org.springframework.context.annotation.ComponentScan;
20
import org.springframework.context.annotation.ComponentScan;
20
import org.springframework.context.annotation.Configuration;
21
import org.springframework.context.annotation.Configuration;
21
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
22
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
22
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
23
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
Line 94... Line 95...
94
        attributesMap.put("dateTimeFormatter", dateTimeFormatter);
95
        attributesMap.put("dateTimeFormatter", dateTimeFormatter);
95
        attributesMap.put("version", "172");
96
        attributesMap.put("version", "172");
96
        attributesMap.put("cssVersion", "10");
97
        attributesMap.put("cssVersion", "10");
97
        attributesMap.put("isDev", getActiveProfile().equals("dev"));
98
        attributesMap.put("isDev", getActiveProfile().equals("dev"));
98
        attributesMap.put("vmUtils", new Utils());
99
        attributesMap.put("vmUtils", new Utils());
99
        //attributesMap.put("esc", new EscapeTool());
100
        attributesMap.put("esc", new EscapeTool());
100
        attributesMap.put("ru", RoundingMode.HALF_UP);
101
        attributesMap.put("ru", RoundingMode.HALF_UP);
101
        return attributesMap;
102
        return attributesMap;
102
    }
103
    }
103
 
104
 
104
    @Bean
105
    @Bean