$ cd java/mybatis
$ ysqlh -f src/main/resources/db-scripts/schema-create-db.sqlBuild the REST API server (written using core Java code) as follows:
$ mvn -DskipTests clean package
Run the REST API server:
$ mvn exec:java -Dexec.mainClass=com.yugabyte.mybatis.server.BasicHttpServer
The REST server will run here: http://localhost:8080
There are a number of options that can be customized in the properties file located here:
src/main/resources/application.properties
| Properties | Description | Default |
|---|---|---|
server.port |
The port on which the REST API server should listen. | 8080 |
src/main/resources/mybatis/config/mybatis-config.xml
