Overview

Based on Java servlet framework and maven managing the dependency.

Demo development environment

Item Description
OS Ubuntu 16.04.6 LTS
jdk version openjdk version 1.8.0_252 64-bit
tomcat version apache-tomcat-8.5.55
maven version apache maven 3.6.3
redis version 3.0.6

Resources

Item Description
Data communication flow chart Data communication flow chart
Download SDK gt3-server-java-servlet-bypass

Installation

Download DEMO

git clone https://github.com/GeeTeam/gt3-server-java-servlet-bypass.git

Configure key pairs

Get public key(ID) and private key(KEY) from GeeTest Dashboard.Then configure the key pair in the following configuration file:

src/main/java/com/geetest/demo/GeetestConfig.jav

Run demo

Run the demo in tomcat and visit http://localhost:8080 to view the demo.

Key file reference

Name Description Directory
FirstRegisterServlet.java Service initialization src/main/java/com/geetest/demo/
SecondValidateServlet.java Secondary verification process src/main/java/com/geetest/demo/
GeetestConfig.java Parameters configuration src/main/java/com/geetest/demo/
GeetestLib.java Contains the core logic src/main/java/com/geetest/sdk/
GeetestLibResult.java Encapsulated class providing access to the data src/main/java/com/geetest/sdk/
web.xml server configuration for setting the router src/main/webapp/WEB-INF/
index.html Index page of the demo src/main/webapp/
gt.js JavaScript file loaded locally static/
pom.xml Manage dependency by maven

Reference

GeeTest Status Monitoring API

Client/SDK Server Communication API Reference

SDK/GeeTest Server Communication API Reference