Package app.YUP.config
Class CaptchaSettings
java.lang.Object
app.YUP.config.CaptchaSettings
@Component
@ConfigurationProperties(prefix="google.recaptcha.key")
public class CaptchaSettings
extends Object
Configuration class for Google reCAPTCHA.
This class is used to encapsulate the site key and secret key for Google reCAPTCHA.
The keys are configured in the application properties with the prefix "google.recaptcha.key".
It uses the Lombok library to automatically generate getter methods for the fields.
It is annotated with @Component to indicate that it is a Spring Bean and with @ConfigurationProperties to bind the properties prefixed with "google.recaptcha.key" to the fields of this class.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CaptchaSettings
public CaptchaSettings()
-