| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.web.config;
|
1 |
package com.spice.profitmandi.web.config;
|
| 2 |
|
2 |
|
| 3 |
import java.io.IOException;
|
3 |
import java.io.IOException;
|
| 4 |
import java.util.Properties;
|
4 |
import java.util.Properties;
|
| 5 |
|
5 |
|
| 6 |
import org.slf4j.Logger;
|
6 |
import org.apache.logging.log4j.Logger;
|
| 7 |
import org.slf4j.LoggerFactory;
|
7 |
import org.apache.logging.log4j.LogManager;
|
| 8 |
import org.springframework.context.annotation.Bean;
|
8 |
import org.springframework.context.annotation.Bean;
|
| 9 |
import org.springframework.context.annotation.ComponentScan;
|
9 |
import org.springframework.context.annotation.ComponentScan;
|
| 10 |
import org.springframework.context.annotation.Configuration;
|
10 |
import org.springframework.context.annotation.Configuration;
|
| 11 |
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
11 |
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
| 12 |
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
|
12 |
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
|
| Line 22... |
Line 22... |
| 22 |
public class AppConfig {
|
22 |
public class AppConfig {
|
| 23 |
|
23 |
|
| 24 |
private static final String PATH_PREFIX="/WEB-INF/views/";
|
24 |
private static final String PATH_PREFIX="/WEB-INF/views/";
|
| 25 |
private static final String PATH_SUFFIX=".jsp";
|
25 |
private static final String PATH_SUFFIX=".jsp";
|
| 26 |
private static final String MESSAGE_PATH_SOURCE_NAME="classpath:message";
|
26 |
private static final String MESSAGE_PATH_SOURCE_NAME="classpath:message";
|
| 27 |
private static final Logger LOGGER=LoggerFactory.getLogger(AppConfig.class);
|
27 |
private static final Logger LOGGER=LogManager.getLogger(AppConfig.class);
|
| 28 |
private static Resource resource;
|
28 |
private static Resource resource;
|
| 29 |
|
29 |
|
| 30 |
public static Resource getResource() {
|
30 |
public static Resource getResource() {
|
| 31 |
return resource;
|
31 |
return resource;
|
| 32 |
}
|
32 |
}
|