Get the App
SLTechnology News&Howtos  ›  Development  › 

How to build the secondary development of back-end Java SDK based on crudapi add, delete, modify and query interface

Shulou Source: shulou.com Published: 2022-06-03 06:12:29 10月02日 Update

This article introduces the relevant knowledge of "how to build the secondary development of Java SDK back-end based on crudapi add, delete, modify and query interface". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Background

At present, the background Java API services of the crudapi add, delete, change and query interface system are all available. In order to meet the complex scenarios, we can carry out secondary development by integrating Java SDK to meet the actual business needs.

Setting up the environment and installing JDK

Download version 1.8 of the official website https://www.oracle.com/java/technologies/javase-downloads.html (Java SE 8J SE 8u281 is the latest release for the Java SE 8 Platform.) and install it.

Java-versionjava version "1.8.0mm 241" install maven

Download the latest stable version and install it on the official website http://maven.apache.org. It has been verified that version 3.6 is OK.

Mvn-vApache Maven 3.6.3 download demoGitHub address

Https://github.com/crudapi/crudapi-example

Gitee address

Https://gitee.com/crudapi/crudapi-example

Due to network reasons, GitHub may be slow, so you can access Gitee instead, and the code will be updated synchronously.

Locally install the Jar package mvn install:install-file-Dfile=./lib/crudapi-core-1.0.0.jar-DgroupId=cn.crudapi-DartifactId=crudapi-core-Dversion=1.0.0-Dpackaging=jarmvn install:install-file-Dfile=./lib/crudapi-api-1.0.0.jar-DgroupId=cn.crudapi-DartifactId=crudapi-api-Dversion=1.0.0-Dpackaging=jar to import the database

. / mysql/crudapi.sql

Configure database information

. / src/main/resources/application.properties

Spring.datasource.url=jdbc:mysql://localhost:3306/crudapi?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=truespring.datasource.username=rootspring.datasource.password=root compile mvn clean install-Dmaven.test.skip=true run the java-jar. / target/crudapi-example-1.0.0.jarswagger document

Http://127.0.0.1:8888/swagger-ui.html

User name and password superadmin1234567890crudapi backend manages WEBGitHub warehouse

Https://github.com/crudapi/crudapi-admin-web

Gitee warehouse

Https://gitee.com/crudapi/crudapi-admin-web

Modify configuration

Modify devServer- > proxy- > target in quasar.conf.js file

DevServer: {https: false, port: 8080, open: true, / / opens browser window automatically proxy: {"/ api/*": {target: "http://127.0.0.1:8888", changeOrigin: true} with demo demonstration

Main functions: metadata management, serial number management, table relationship setting, business data crud addition, deletion, change and query, etc.

Forms correspond to different objects

The table diagram shows the relationships between different objects

This is the end of the content of "how to build the secondary development of back-end Java SDK based on crudapi add, delete, modify and query interface". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Data interface development management difference business warehouse content background address actual object database more version knowledge configuration complexity achievement next Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux OPPO Reno Huawei Shulou Tech Info Apple