MenuInjector -> @Component

master
mjkhan21 1 year ago
parent 4f40b18d91
commit d0f1af19a9

@ -8,6 +8,7 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
@ -20,6 +21,7 @@ import cokr.xit.foundation.web.RequestInterceptor;
/** ModelAndView "_menus" . /** ModelAndView "_menus" .
* @author mjkhan * @author mjkhan
*/ */
@Component("menuInjector")
public class MenuInjector extends RequestInterceptor { public class MenuInjector extends RequestInterceptor {
private static final String HTML_GET = "html-get"; private static final String HTML_GET = "html-get";
// private static final String HTML_POST = "html-post"; // private static final String HTML_POST = "html-post";

Loading…
Cancel
Save