在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Baeldung/spring-security-registration开源软件地址:https://github.com/Baeldung/spring-security-registration开源编程语言:Java 80.5%开源软件介绍:Login and Registration Example Project with Spring SecurityIf you're already a student of Learn Spring Security, you can get started diving deeper into registration with Module 2 Relevant Articles:
Build and Deploy the Project
This is a Spring Boot project, so you can deploy it by simply using the main class: Once deployed, you can access the app at: Set up MySQLBy default, the project is configured to use the embedded H2 database. If you want to use the MySQL instead, you need to uncomment relevant section in the application.properties and create the db user as shown below:
Set up EmailYou need to configure the email by providing your own username and password in application.properties You also need to use your own host, you can use Amazon or Google for example. AuthenticationSuccessHandler configuration for Custom Login Page articleIf you want to activate the configuration for the article Custom Login Page for Returning User, then you need to comment the @Component("myAuthenticationSuccessHandler") annotation in the MySimpleUrlAuthenticationSuccessHandler and uncomment the same in MyCustomLoginAuthenticationSuccessHandler. Feature toggle for Geo IP LibThe geolocation checks do not work for the IP addresses 127.0.0.1 and 0.0.0.0,
which can be a problem when running the application locally or in a test environment.
To enable/disable the check on the geolocation, set the property |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论