Configure synonyms in solr

Configure synonyms in solr

Solr provides the option to configure synonyms for use during both indexing and querying of textual data. Consider for example the words MB,mib,megabyte,megabytes , all these four variation may contain ur…

Solr dataimporthandler class not found exception

Solr dataimporthandler class not found exception

Error creating core [DataimportExample]: Error loading class ‘org.apache.solr.handler.dataimport.DataImportHandler’ org.apache.solr.common.SolrException: Error loading class ‘org.apache.solr.handler.dataimport.DataImportHandler’ when we index document from database and configure dataimport request handler at that time may people faced…

Spring Security with Hibernate example

Spring Security with Hibernate example

This article contains spring security with hibernate example with detail explanation and source code. Table of ContentsTechnology:Project StructureDependency:Configuration FilesWebConfigs.javaSpringWebConfig.javaSpringSecurityWebConfig.javaSecurityWebApplicationInitializer.javaHibernate Configurationapplication.propertiesControllerLoginController.javaEmployeeController.javaDAO layerEmployeeDAO.javaEmployeeDAOImpl.javaHibernate ModelEmployee.javaService LayerEmployeeService.javaEmployeeServiceImpl.javaJSP Pages:index.jspcreateEmployee.jspviewEmployee.jsplogoutSuccess.jspOutput:Spring Security with hibernate Example Login PageSpring…

Spring Security csrf example

Spring Security csrf example

This article contains Spring Security CSRF Example for authentication using Spring Security. This article help you to solve Cross Site Request Forgery (CSRF) problem using spring security. As of Spring Security 4.0, CSRF…

role should not start with ‘ROLE_’ since it is automatically inserted. Got ‘ROLE_ADMIN’

Caused by: java.lang.IllegalArgumentException: role should not start with ‘ROLE_’ since it is automatically inserted. Got ‘ROLE_ADMIN’ org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘springSecurityFilterChain’ defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean…

Spring Security Example

Spring Security Example

Here is Spring Security Example using Java Configuration. Spring Security provides comprehensive security services for Java EE-based enterprise software applications. There is a particular emphasis on supporting projects built using…