Subversion Repositories SmartDukaan

Rev

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

Rev 22113 Rev 22165
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
 
-
 
5
import java.util.Properties;
4
import java.util.Properties;
6
 
5
 
7
import org.slf4j.Logger;
6
import org.slf4j.Logger;
8
import org.slf4j.LoggerFactory;
7
import org.slf4j.LoggerFactory;
9
import org.springframework.context.annotation.Bean;
8
import org.springframework.context.annotation.Bean;
Line 16... Line 15...
16
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
15
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
17
import org.springframework.web.servlet.ViewResolver;
16
import org.springframework.web.servlet.ViewResolver;
18
import org.springframework.web.servlet.view.velocity.VelocityConfigurer;
17
import org.springframework.web.servlet.view.velocity.VelocityConfigurer;
19
import org.springframework.web.servlet.view.velocity.VelocityLayoutViewResolver;
18
import org.springframework.web.servlet.view.velocity.VelocityLayoutViewResolver;
20
 
19
 
-
 
20
import com.spice.profitmandi.dao.repository.dtr.Mongo;
-
 
21
 
21
@SuppressWarnings("deprecation")
22
@SuppressWarnings("deprecation")
22
@Configuration
23
@Configuration
23
@ComponentScan("com.spice.profitmandi.*")
24
@ComponentScan("com.spice.profitmandi.*")
24
public class AppConfig {
25
public class AppConfig {
25
 
26
 
Line 95... Line 96...
95
 
96
 
96
		propertySourcesPlaceholderConfigurer.setLocation(resource);
97
		propertySourcesPlaceholderConfigurer.setLocation(resource);
97
 
98
 
98
		return propertySourcesPlaceholderConfigurer;
99
		return propertySourcesPlaceholderConfigurer;
99
	}
100
	}
-
 
101
	
-
 
102
	@Bean
-
 
103
    public Mongo mongoClient() {
-
 
104
        return new Mongo();
-
 
105
    }
100
 
106
 
101
}
107
}
102
108