Home
Chat
This website collects cookies to deliver better user experience
OK
Springboot-GooglereCAPTCHA
Springboot-GooglereCAPTCHA
Let me start.
Step#1:
Go to google and google recaptcha admin console
Login with your Gmail account
Create captcha v2 by giving name, type, owner and domain.
Then you will get two keys :
Client side key secret
Server side key secret
Step#2:
Go to
https://start.spring.io/
Open your favorite IDE , I am using Intellij Idea 2021.1.2 [Community Edition]
Choose your project name,groupId and artifact.
Use java 8 and higher as your version
Select following dependencies
Spring Web
Spring Data Jpa
Thymeleaf
H2 Database for persistence
Lombok for POJO classes.
I create my project structure, I always tell my friend to structure there projects, don’t miss up everything one package.
CUSTOMER as my model class : Customer, CaptchaResponse
Repository :CustomerRepository
Services :ICustomerService, CustomerServiceImpl
Controller :CustomerController
Configuration class for reCAPTCHA :AppConfig
I can’t explain each and every line of code for this simple article but I am sharing my github link where you can clone and analysis in your own way.
Thank you All.
26
0
Categories:
Java
Tags:
Spring
Java
Springboot
Captcha
Related Posts
loading...
loading...
loading...
loading...
loading...
loading...
loading...
loading...
Post Comment
Show Comments
Abstract class vs interfaces. When to use them?
How to get Thread dump from Heap dump
Android Basics: UI Layouts
The Curated List of Ultimate Java Resources 🧵
Kotlin vs Java: 10 Years In
Kotlin vs. Java: Which is the better Android Development Language
Build a event-driven app with Micronaut, Kafka and Debezium
Wednesday Links - Edition 2021-06-23