Java
-
Detailed explanation of mybatis method to prevent SQL injection
SQL injection is a very simple attack, but it is still very common today. The reason is no patch for stupid. Why? Let'…… -
Explain in detail how to use spring security to solve CSRF problems
CSRF introduction CSRF (Cross Site Request Forgery), Chinese Name: Cross Site Request Forgery, also known as one click…… -
Complete example tutorial of spring MVC + fastjason + swagger integration
Basic part 1. Introduction to fastjason Fastjson is a Java library that can be used to convert Java objects into JSON …… -
How to use MySQL for Java Web Learning in the project
preface Awkward: access denied for user 'root' @'localhost 'using password yes Sometimes, when connecting to MySQL dat…… -
The list object list in Java implements the method of de duplication or retrieval and sorting
preface Because I have encountered several list de duplication and sorting during the interview, I feel it necessary t…… -
Spring boot uses druid and monitoring configuration methods
The default data source of spring boot is: org apache. tomcat. jdbc. pool. DataSource Druid is the best database conne…… -
Understanding and testing of functional interface based on Java 8
1. Understanding of functional interfaces According to the idea of refactoring, modules that are easy to change need t…… -
The spring boot + thymeleaf backend directly assigns values to the onclick function
This is the return from the controller page JS The above is the implementation code of spring boot + thymeleaf backend…… -
Using and configuring Druid with spring boot
1. Import dependent packages 2. Configure application properties 3. At present, the default supported connection pools…… -
On the difference between # and $in mybatis and the methods to prevent SQL injection
The difference between # and $in mybatis 1. # treat the incoming data as a string, and add a double quotation mark to …… -
The instance code of the mybatis pass in parameter
The parametertype attribute is mentioned in the select, insert, update and delete elements of mybatis. The parameterty…… -
Configuration method of specifying output file location based on Web Project Log
First, we define a webapprootkey that can dynamically find the path of the project at runtime. The reason for this is …… -
Spring boot using Druid
Druid is the best database connection pool in the Java language and can provide powerful monitoring and extension func…… -
How to use Java array correctly in instance parsing
1、 On the characteristics of arrays 1 In Java, whether you use arrays or collections, there are boundary checks. If t…… -
How does Java create files in a directory where no folder exists
The core code is as follows: 1、 2、 summary The above is what Xiaobian introduced to you about how Java creates files…… -
Summary of four methods of passing multiple parameters in mybatis
preface Now most projects use mybatis, but some companies use hibernate. The biggest feature of using mybatis is that …… -
Spring boot uses Druid for dimension statistics and monitoring
Druid Druid: a database connection pool framework for monitoring. The whole project is composed of database connection…… -
Detailed explanation of mybatis method to prevent SQL injection
SQL injection is a very simple attack, but it is still very common today. The reason is no patch for stupid. Why? Let'…… -
Solutions for mybatis to pass multiple parameters (three)
The editor will share three solutions to the problem of mybatis passing multiple parameters. The details are as follow…… -
Redis introduction and usage scenario explanation
This article mainly introduces the introduction and usage scenarios of redis. Xiaobian thinks it's very good. Now I'll…… -
In depth understanding of cookies and sessions in Java Web Learning
The difference between cookie mechanism and session mechanism Specifically, the cookie mechanism adopts the scheme of …… -
Rxjava + retro fit + MVP realize shopping cart function
This example shares the specific code of rxjava retro to realize the shopping cart for your reference. The specific co…… -
Complete example tutorial of spring MVC + fastjason + Hibernate validator integration
1: Hibernate validator Foundation 1. Introduction: By using annotation annotations to impose constraints on classes o…… -
Java code annotation specification (power node sorting)
Code annotation is a communication bridge between program designers and program readers to maximize the efficiency of …… -
Detailed explanation of spring cloud retry mechanism configuration
First of all, the retry here is not the retry after an error is reported, but the load balancing client tries other in…… -
Java socket simple chat tool
This example shares a simple socket chat tool for you. I hope you like it. The code runs as shown in the figure, which…… -
Sample code of spring boot integrating spring security
This article describes the integration of spring boot and spring security, using annotations to realize permission con…… -
Config configuration tutorial for getting started with spring cloud
preface This article mainly shares with you the introductory tutorial on spring cloud, which mainly introduces the rel…… -
How to build a stream example in Java 8
Stream first experience Stream is an important feature of operation set in Java 8. Let's take a look at how stream is …… -
Java development naming specification summary
Precautions before use: 1. Due to the characteristics of java object-oriented programming, nouns should be selected as…… -
Detailed spring cloud Eureka multi network card configuration summary
When deploying Eureka high availability solution on the Linux host, it was found that the service IP registered in the…… -
Explain the implementation principle of spring retry in detail
In the previous blog, I introduced the use of spring retry. This article demonstrates the implementation principle of ……
