/uiharu-demo

💡a simple demo demonstrate how to use uiharu framework.

Primary LanguageJavaScript

uiharu demo

💡a simple demo demonstrate how to use uiharu framework.

package

mvn clean package -DskipTests

run

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.

stop

# cd to tomcat dir
./bin/shutdown.sh

demo

  1. 获取view

  2. 获取data

  1. POST接口,解析JSON并自动注入

  1. 数据库插入数据

  1. 数据库事务,失败回滚