当前位置:网站首页>Summary of database 2
Summary of database 2
2022-07-04 15:48:00 【rushduckxzr】
1.JDBC
Use of transmitter PreparedStatement Preprocessing statement , Can prevent sql Inject , Its preprogrammed performance is high . Security , Efficient ,sql concise
Statement: The parent interface ,sql Manual splicing parameters are required .
2.Maven
- development tool : The front end uses HBuilderX, The back end uses eclipse/idea
- project management : The front end uses npm、webpack, The back end uses Maven、SpringBoot
- web middleware : The front end uses NodeJS, The back end uses Tomcat
maven: download , management , compile jar package
A classic business request process :
front end html Page launch ajax request (http://localhost:8080/factoryController/findAll), visit SpringMVC Framework of the Controller Control layer ,SpringMVC Framework resolution request , Find one to call Controller, Find one findAll Method , At the same time, the parameters submitted by the request are encapsulated in java In the object . after Controller The layer passes the request to Spring Framework of the Service The business layer ,Service The layer is passing the request to Mybatis Framework of the Mapper Persistence layer ,Mapper visit MySQL Database queries database tables , The query result is returned to Mapper layer ,Mapper Return to Service layer ,Service Return to Controller layer .Controller hold java Data to json character string , Return to ajax call ,ajax Make a callback and put json String conversion to js object , In the page, you can pass js/vue analysis js object , Finally, show the data to html On the page .
Four characteristics :
1.reposity: Local repository , Create your own folder , For storage maven Download it from the image jar package
2. coordinate :
coordirate, For storing and searching jar The location of the package
groupId: Usually the company's domain name
artifactid: project id, Usually the name of the project
3. rely on : You can specify what you want <dependeneies/> Download the image warehouse to the local warehouse .
4. command : Common commands :
- clean Clean cache
- package pack jar、war
- install install jar To the local warehouse
3.IDEA plug-in unit
1.lombok:@Data: Act on a class , Is a collection of the following annotations :@ToString @EqualsAndHashCode @Getter @Setter @RequiredArgsConstructor
2.SpringBoot Thermal deployment : Changed the code , You don't have to restart , Just recompile to access the new data .SpringBoot The core mechanism : " Open the box " Just import specific jar Package file You can use the functions directly The root cause : SpringBoot It's a simplification of the framework , It's expanded internally , No programmer required .
4.json
JSON refer to JavaScript Object notation , A lightweight data exchange format
Send data to the server : take JS Conversion of objects JSON character string JSON.stringify(Js object )
Accept data from the server : JSON String to JS object JSON.parse("json character string ")
5. Database optimization
1. Use the field name in select Instead of *
2.where Use in and Instead of or
3. Use as much as possible varchar Instead of char, Use numbers instead of string types
4. The return value of the query should not be large
5. Build indexes to improve query efficiency
6.where Try not to use <> or != The operator
7. Optimize like sentence : Fuzzy queries are best started with certain characters
8. Batch insertion performance improvement
9. duplicate removal distinct Filter fewer fields
6.vue
1.vue Of ajax: Asynchronous access , Partial refresh
2.axios The request header Content-Type The default is application/json, and postman The default is application/x-www-form-urlencoded.
ajax/postman It is generally used @RequestParam Receiving parameters :
axiso use @RequestBody Of json Mode to receive parameters :@RequestBody, Will the incoming json Convert string to Json object
3.Vue Why is this called a framework : Applied to Observer mode : The observer pattern defines a one to many dependency , Let multiple observer objects listen to a target object at the same time , When the state of the target object changes , All observer objects will be notified , Enable them to update automatically .
边栏推荐
- Functional interface, method reference, list collection sorting gadget implemented by lambda
- 【读书会第十三期】视频文件的编码格式
- 十六进制
- Width and alignment
- Redis' optimistic lock and pessimistic lock for solving transaction conflicts
- 直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
- lnx 高效搜索引擎、FastDeploy 推理部署工具箱、AI前沿论文 | ShowMeAI资讯日报 #07.04
- Unity script API - transform transform
- Deep learning neural network case (handwritten digit recognition)
- 文本挖掘工具的介绍[通俗易懂]
猜你喜欢

這幾年爆火的智能物聯網(AIoT),到底前景如何?
MySQL组合索引(多列索引)使用与优化案例详解
Redis shares four cache modes

Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example

Common API day03 of unity script

Deep learning neural network case (handwritten digit recognition)

Unity脚本常用API Day03

2022年九大CIO趨勢和優先事項

Blood cases caused by Lombok use

In today's highly integrated chips, most of them are CMOS devices
随机推荐
Unity script API - transform transform
[book club issue 13] ffmpeg common methods for viewing media information and processing audio and video files
怎么判断外盘期货平台正规,资金安全?
[learning notes] matroid
%f格式符
【读书会第十三期】 音频文件的封装格式和编码格式
CentOS 6.3 下 PHP编译安装JSON模块报错解决
The four most common errors when using pytorch
Lombok使用引发的血案
Unity脚本常用API Day03
%S format character
Implementation of web chat room
MySQL learning notes - data type (numeric type)
What encryption algorithm is used for the master password of odoo database?
Numpy notes
Unity script introduction day01
Deep learning network regularization
进制乱炖
mysql 联合主键_Mysql 创建联合主键[通俗易懂]
c# 实现定义一套中间SQL可以跨库执行的SQL语句