Subversion Repositories SmartDukaan

Rev

Rev 22073 | Rev 22080 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21615 kshitij.so 1
package com.spice.profitmandi.web.controller;
2
 
22073 ashik.ali 3
import java.util.Properties;
4
 
21615 kshitij.so 5
import org.slf4j.Logger;
6
import org.slf4j.LoggerFactory;
22079 amit.gupta 7
import org.springframework.beans.factory.annotation.Value;
22073 ashik.ali 8
import org.springframework.core.io.Resource;
21615 kshitij.so 9
import org.springframework.stereotype.Controller;
22073 ashik.ali 10
import org.springframework.ui.Model;
21615 kshitij.so 11
import org.springframework.web.bind.annotation.RequestMapping;
12
import org.springframework.web.bind.annotation.RequestMethod;
13
 
22073 ashik.ali 14
import com.spice.profitmandi.web.config.AppConfig;
15
 
21615 kshitij.so 16
@Controller
17
public class DashboardController {
18
 
19
	private static final Logger LOGGER = LoggerFactory.getLogger(DashboardController.class);
20
 
22079 amit.gupta 21
	@Value("${app.context.path}")
22
	private String appContextPath;
23
 
21615 kshitij.so 24
	@RequestMapping(value = "/dashboard", method = RequestMethod.GET)
22073 ashik.ali 25
	public String dashboard(Model model) throws Exception{
26
		Resource resource = AppConfig.getResource();
27
		Properties properties = new Properties();
28
		properties.load(resource.getInputStream());
22079 amit.gupta 29
		model.addAttribute("appContextPath", appContextPath);
21615 kshitij.so 30
		return "dashboard";
31
	}
32
 
33
}