In this project, you will know what really does windward can do, and find out how to implement a short url service.
Also , You will learn a different way to Java web application without Spring.
First of all, We must do
mvn clean compileThen init database with short_url.sql
| relative path | method | querystring | description |
|---|---|---|---|
| v1/url | post | originUrl | generate short url for origin url |
| v1/url/list | get | - | select all generated url |
| {url} | get | - | access short url |
build uber-jar
mvn -Pjar packagepackage binary file
mvn -Pnative -Dagent exec:exec@java-agentmvn -Pnative -Dagent packagecompress binary file
upx --best ./target/shortUrl