Hibernate Learning Notes 3 (HQL Query)
HQL statement
In Hibernate, although simple primary key query statements can be generated directly by Hibernate using the API, complex query statements need our own handwriting. Hibernate provides us with an HQL statement to use. HQL is the abbreviation of Hibernate Query Language, HQL is a statement close to SQL, b ...
Added by PHPTOM on Thu, 07 Nov 2019 21:20:33 +0200
HTTPS process Brief
The most important thing in HTTPS is SSL handshake. SSL handshake is used to negotiate the secret key and encryption suite. The overall process is as follows:
The client tells the server to use HTTPS protocol;
The server returns its certificate and public key to the client;
Client verifies the validity of public key and certificate;
After pass ...
Added by jmurch on Sun, 03 Nov 2019 06:46:45 +0200
Introduction to ORM framework SQLAlchemy
Related information/Official website address
1. Install sqlalchemy and check the version
Execute the following statement under the command line to install:
pip install SQLAlchemy
View version after installation:
import sqlalchemy
print(sqlalchemy.__version__)
In addition, PyMySQL needs to be installed, otherwise an error of modulenotfounderr ...
Added by prasad_deba on Thu, 31 Oct 2019 11:00:31 +0200
A chain building exception between jsch client and sshd server
The following exception indicates that the encryption algorithm does not meet the key size.
Find the reasons from the Internet as follows, which may be the following. This kind of error may be reported if the versions of both sides of the jdk are inconsistent. But in fact, I use the same local jdk as 1.8-u191. Take a closer look, the th ...
Added by lala on Thu, 31 Oct 2019 06:03:55 +0200
The front and back end of nginx is separated from the proxy forwarding to solve the cross domain problem
scene
It is applicable to the company with front-end, and the project adopts front-end separation. Similar to the interface provided by our back-end springboot, the front-end specially writes html to call the corresponding interface to solve cross domain problems.
Configuration description
worker_processes 1;
events {
worker_connectio ...
Added by inVINCEable on Wed, 30 Oct 2019 16:46:58 +0200
hql statement query of Hibernate
HQL is the abbreviation of Hibernate Query Language, which provides more flexible and powerful query capabilities; HQL is closer to SQL query syntax.
query
Query all (persistent data)
// s: aliases must be aliased to objects, not *. Not in hibernate*
String hql="select s from Student s";
//The Que ...
Added by TNIDBMNG on Tue, 29 Oct 2019 18:29:11 +0200
dedeCMS background upload getshell vulnerability (CNVD-2018-01221) recurrence
Vulnerability Name:
CNVD-2018-01221
Influence:
Dedecms v5.7 sp2
Harm:
Arbitrary code execution, getshell;
preparation:
win7 virtual machine + Dedecms v5.7 sp2+phpstudy
First install Dedecms v5.7 sp2:
http://www.dedecms.com
After downloading and installing, directly visit localhost/Dedecms v5.7 sp2/upl ...
Added by turek on Sun, 27 Oct 2019 12:26:02 +0200
Spring MVC parameters and return values
Catalog
One with jsp
Two parameter binding
Common types
Default supported parameter types
Simple data type binding
Request garbled processing
Custom Converter
Three methods return value
Return to ModelAndView
Return to void
Return string
Reference resources
One with jsp
You can return String ...
Added by donbonzo on Sun, 27 Oct 2019 10:02:46 +0200
The understanding of verification code in java: the integration of springboot and kaptch
Background
1. In recent projects, we need to replace the verification code with kaptch and springboot, which is also convenient to operate. We have made many detours, and specially wrote down this method for your reference. Let's explain it next.
II. Project structure
III. detailed configuration ...
Added by tvance929 on Sat, 26 Oct 2019 20:58:29 +0300
Spring Security Learning note 2
Principle analysis of successful and failed spring security authentication processor
First of all, we need to know that the default success and failure processors of spring security are SavedRequestAwareAuthenticationSuccessHandler and simpleurauthenticationfailurehandler. Normally, when requesting a ...
Added by p_h_p on Fri, 25 Oct 2019 13:03:19 +0300