In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.