SOLR INDEX TIME BOOST

Solr Index Time Boost

There are two stages where documents can be boosted: At index time and at query time. here we discuss index time boost feature solr. This is probably the simplest way,…

Spring Security : check whether you have multiple ContextLoader* definitions in your web.xml!

Table of ContentsProblem:Trace:Solution: Problem: public class SecurityWebApplicationInitializer extends AbstractSecurityWebApplicationInitializer { public SecurityWebApplicationInitializer(){ super(SpringSecurityWebConfig.class); } } Trace: java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present -…

spring mvc configure custom error pages

How to configure error page in spring

Table of ContentsErrorController.javaweb.xml404.jsp500.jsp ErrorController.java package com.springdemo; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @Controller @RequestMapping(“/”) public class ErrorController { @RequestMapping(value = “404”,method = RequestMethod.GET) public String Page404(ModelMap model) {…