💡a simple demo demonstrate how to use uiharu framework.
mvn clean package -DskipTests
move the war file to tomcat to startup.
mv target/uiharu-demo-1.0.war <your_tomcat_webapps_dir>
# cd to tomcat dir
./bin/startup.sh
then go to http://localhost:<port>/data
to see the get api.
# cd to tomcat dir
./bin/shutdown.sh
- POST接口,解析JSON并自动注入
- 数据库插入数据
- 数据库事务,失败回滚