当前位置:网站首页>Sliding validation tool class
Sliding validation tool class
2022-06-21 14:01:00 【Funny 2233】
Recently, I want to implement a sliding verification code , But I didn't find anything very useful , I wrote one myself
The main idea is to dynamically generate pictures in the background , And store the offset value , Easy to verify , It is similar to the self-defined picture verification code . Stored in seeeion in , You can also verify at the time of submission .
I wrote two editions of the same , A common version Maven edition , Easy to use , First edition spring-boot-starter Convenience and SpringBoot Use a combination of .
Project objectives
Slide verification code Write your own Use session Storage Tool class Every time Random Various information can be set
Develop tool classes first Redevelopment SpringBootStarter
Set picture size And Slider size
Background image location Slider picture position
watermark Content ( It can be changed ) size text color ( It can be changed )
Interference term number ( It can be changed )
Optimize Based on slider Part of the judgment required
SpringBootStarter Unique
Accuracy adjustment
Easy to use Canvas Implementation verification
Project effect
Introduce dependencies , Write the configuration , The actual configuration does not require how to write the default values, and most of them are sufficient , Basic filling 
The picture size should be consistent with the setting , So you don't have to adjust it automatically
Related resources 
Use effect 
Because my front end is not very good , Use here Canvas Test done
The main use of 3 individual api, these API All are provided by default
| name | effect |
|---|---|
| /slider/bg | Used to get the background picture |
| /slider/slider | Used to get the slider picture , It will automatically expand the height to match the background image |
| /slider/check?pos=${offset} | Enter the current offset for background verification |
Maven Project address :https://gitee.com/shaokang123/sliding-verification-code
spring-boot-starter Project address :https://gitee.com/shaokang123/slider-validation-spring-boot-starter
边栏推荐
- Blazor webassembly integrates Ocelot gateway to solve cross domain problems
- C language elementary level (10) type rename typedef
- 哪個期貨平臺 交易更安全放心。求推薦。
- Lamp architecture 6 -- MySQL master-slave replication and optimization method
- Use map set or list set to store list set
- CSDN is the only one: detailed tutorial teaching on how to connect multiple mobile phones by appium+pytest+allure+jenkins
- MySQL - built in functions
- Declare war on uncivilized code I
- Making my footprint map using API
- Kotlin - i/o flow
猜你喜欢

Must the database primary key be self incremented? What scenarios do not suggest self augmentation?

Async get and post request interface data (add, delete, modify and query pages)

Babbitt yuancosmos daily must read: wechat may ban a official account for the first time on the grounds of "involving secondary transactions in digital collections", and the new regulations of the pla

Read distributed consistency protocols 2pc and 3pc

MySQL - table join and join

MySQL - table constraints

MySQL - adding, deleting, querying and modifying tables

Design and implementation of object system in redis

How does JMeter implement interface association?

Teach you how to design interface automation test cases: extract interface information and analyze it
随机推荐
Tcp/ip FAQs
Add SSL security certificate to web site
Sort query results according to the input order of fuzzy query jancode
Some atom operations
Pingcap was selected as the "voice of customers" of Gartner cloud database in 2022, and won the highest score of "outstanding performer"
Atguigu---- conditional rendering
Declare war on uncivilized code II
May the mountains and rivers be safe
Automatic operation and maintenance 2 - common modules in ansible
Redis cluster deployment manual that Xiaobai can understand
Technology sharing | a clustering incremental statistical SQL requirement in MySQL
Teach you how to design interface automation test cases: extract interface information and analyze it
Viewing tcp/ip network communication from the sending of an email
2. reference
Design interface automation test cases by hand: establish database instances and test case tables
Installation of MySQL 8.0.19 under alicloud lightweight application server linux-centos7
Are you still using generator to generate crud code of XXX management system? Let's see what I wrote
C language elementary level (10) type rename typedef
Postman reports error write eproto 93988952error10000f7ssl routinesopenssl_ internalWRONG_ VERSION_ NUM
Disputes between chromedriver, geckodriver, microsoftwebdriver, iedriverserver and operadriver