Giter Club home page Giter Club logo

spring-boot-hibernet-search-spring-security's Introduction

spring-boot-hibernet-search-spring-security

In this project i will discuss the basics of Hibernate Search and spring security in spring boot project, how to configure it, and we'll implement some simple queries.

Basics of Hibernate Search

Whenever we have to implement full-text search functionality, using tools we're already well-versed with is always a plus.

In case we're already using Hibernate and JPA for ORM, we're only one step away from Hibernate Search.

Hibernate Search integrates Apache Lucene, a high-performance and extensible full-text search-engine library written in Java. This combines the power of Lucene with the simplicity of Hibernate and JPA.

Simply put, we just have to add some additional annotations to our domain classes, and the tool will take care of the things like database/index synchronization.

Hibernate Search also provides an Elasticsearch integration; however, as it's still in an experimental stage, we'll focus on Lucene here.

Spring Security Form Login

This article is going to focus on Login, Registration, Password update, Logout with Spring Security. We're going to build on top of the simple previous Spring MVC example, as that's a necessary part of setting up the web application along with the login mechanism.

Spring-boot-hibernet-search-spring-security project import

  1. git clone https://github.com/ahasanhabibsumon/spring-boot-hibernet-search.git

Spring-boot-hibernet-search-spring-security project run

  1. import on IDE
  2. create database basic_security
  3. change databse username and password
  4. go to browser and enter http:localhost:8092/
  5. create a folder on local directory for where Lucene should store the index. now define path on application.properties on spring.jpa.properties.hibernate.search.default.indexBase = D:/work-space/hibernet_serach_store/
  6. in the login page below click on registraion link

spring-boot-hibernet-search-spring-security's People

Contributors

ahsumon85 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.