h5 official account to share friends and friends
preface
Wechat sharing (using wechat JS-SDK) and wechat JS-SDK are web development kits based on wechat for web developers. Official documents used by JSSDK( Official user manual)
Explain my usage and the record of tramway. I am a public official account of h5 project. Today, I suddenly received the demand to share the contents of a certain t ...
Added by nikkio3000 on Mon, 21 Feb 2022 08:29:46 +0200
Live broadcast mall platform, images are displayed side by side
On the live broadcast mall platform, the images show the relevant codes in the form of side-by-side Halcon code
read_image (Image, 'claudia') //Read image
concat_obj (Image, Image, Images) //Connect two iconic object tuples
tile_images (Images, TiledImage1, 1, 'vertical') //Tile multiple image objects into a la ...
Added by garethhall on Mon, 21 Feb 2022 08:27:10 +0200
#{} how to prevent SQL injection? What is its underlying principle?
1, The difference between ${} and #{} in MyBatis
1.1 ${} and #{} presentations
Database data:
dao interface:
List<User> findByUsername(String username);
List<User> findByUsername2(String username);
Mapper.xml:
<!-- use#{} -->
<select id="findByUsername" parameterType="java.lang.String" resultType="com.lscl.entity ...
Added by samuraitux on Mon, 21 Feb 2022 08:00:16 +0200
Template of C + + foundation
Generic Programming
When learning function overloading before, we wrote a Swap function Swap
void Swap(int& left, int& right)
{
int tmp = left;
left = right;
right = tmp;
}
void Swap(char& left, char& right)
{
char tmp = left;
left = right;
right = tmp;
}
void Swap(double& left, double& right)
{
double tmp ...
Added by 6pandn21 on Mon, 21 Feb 2022 07:29:58 +0200
03. MySQL multi table & foreign key & database design
1. Multi meter
1.1 multi table description
In actual development, a project usually needs many tables to complete. For example, the database of a mall project needs many tables: user table, classification table, commodity table, order table
1.2 disadvantages of single meter
1.2.1 data preparation
Create a database db3CREATE DATABASE db ...
Added by markszy on Mon, 21 Feb 2022 07:16:34 +0200
Knowledge of JDBC
1. Concept: Java database connectivity, Java database connection, Java language operation database
JDBC essence: it is actually a set of rules defined by the official (sun company) to operate all relational databases, that is, interfaces. Each database manufacturer implements this interface and provides database driver jar package. We can use ...
Added by Pehape on Mon, 21 Feb 2022 06:58:21 +0200
Mysql index principle and slow query optimization
background
MySQL has become the first choice for most companies with low-cost and rich Internet resources. Although the performance is excellent, how to better use the so-called "good horse with good saddle" has become a compulsory course for development engineers. We often see requirements such as "proficient in MySQL", &q ...
Added by marms on Mon, 21 Feb 2022 06:53:35 +0200
Deeply cultivate Java multithreading - analyze the difference between Runnable interface and Callable interface
Runnable interface source code:
@FunctionalInterface
public interface Runnable {
// The return value of this run() method is void. There is no exception declaration for the detected exception. Exceptions can only be caught internally
public abstract void run();
}
Callable interface source code:
@FunctionalInterface
public interf ...
Added by Installer on Mon, 21 Feb 2022 06:29:02 +0200
Deepening and improving JAVA foundation [Chinese]
data structure
Main contents: Introduction to data structure linear structure tree structure
Introduction to data structure
1 what is a data structure
In short, a data structure is a container that stores data in a specific layout. This "layout" determines that a data structure is efficient for some operations and inefficient for ...
Added by ineedhelp on Mon, 21 Feb 2022 06:29:31 +0200
Initial transport layer TCP protocol and the use of TCP in socket
catalogue
I Use of TCP in socket API
1. TCP classes and common methods in socket
(1) ServerSocket class used by the server
(2) socket class
2. Use ServerSocket to realize the interaction between a simple client segment and the server
(1) Graphic thinking
(2) Code implementation
(3) Operation results
II Initial knowledge of TCP Protoc ...
Added by DeGauss on Mon, 21 Feb 2022 06:18:56 +0200