It's an example, which is based on the bookshop application dataset, used plain Java and JDBC to connect TiDB.
- Makefile(recommend)
- Run
make all
- Manual
- Run
tiup demo bookshop prepare
to create the data structure on TiDB - Run
mvn clean package
- Run
java -jar target/plain-java-jdbc-bookshop-0.0.1-jar-with-dependencies.jar