thymeleaf template injection problem vulnerability

Introduction: thymeleaf is recommended as a template engine in Spring Boot because thymeleaf provides perfect spring mvc support. Thymeleaf is a java class library. It is a template engine of xml/xhtml/html5, which can be used as the view layer of mvc web applications. 1, Problem Description: the content displayed on the user page can be tampe ...

Posted by Cultureshock on Wed, 10 Nov 2021 07:21:25 -0800

Java IO learning note 8: multiplexing to Netty

Author: Grey Original address: Java IO learning note 8: multiplexing to Netty Multiplex multithreading The method is still a little troublesome. Netty helped us encapsulate it, greatly simplifying the coding complexity. Next, get familiar with the basic use of netty. Netty + implements a version of the code for communication between client a ...

Posted by Biocide on Wed, 10 Nov 2021 07:12:50 -0800

SpringBoot Learning Notes 6-SpringBoot log

preface Based on the official spring documentation, the official address is: Spring Boot At present, the latest official version is: 2.5.6 (this series of study notes is basically based on translation, so don't waste time expecting to get more. It's more a note made to show yourself the official documents) Content of the current chapter: in ...

Posted by lucidfx on Wed, 10 Nov 2021 06:14:29 -0800

Synchronization exercise (Java SE)

Case 1: data sorting in string Requirement: there is a string: "91 27 46 38 50". Please write a program to realize it. The final output result is: "27 38 46 50 91" Idea: 1. Define a string         2. Store the numeric data in the string into an array of int type           &nb ...

Posted by NogDog on Wed, 10 Nov 2021 04:44:22 -0800

Java learning 18: Reflection

18. Reflection Reflection mechanism Reflection mechanism allows the program to obtain the internal information of any class (such as member variables, constructors, member methods, etc.) with the help of Reflection API during execution, and can operate the properties and methods of objects. After loading the Class, a Class object is generate ...

Posted by Kurtismonger on Wed, 10 Nov 2021 04:34:38 -0800

[Spring] Spring integrates MyBatis

Integration ideas Spring can integrate many frameworks, which is an advantageous function of spring. Through the integration function, it is more convenient for developers to use other frameworks. The integration uses Spring IoC core technology. To use a framework, such as mybatis, how do I use mybatis? The purpose of Spring's integration w ...

Posted by auteejay on Wed, 10 Nov 2021 03:25:49 -0800

cat ~/.bash_history | grep java view linux history command

Query the recently executed Java command cat ~/.bash_history | grep java 7. history command The history command is used to display the commands executed in history. The format is "history [-c]". The history command should be the author's favorite command. Executing the history command can display the last 1000 command records execu ...

Posted by Darrel on Wed, 10 Nov 2021 03:17:03 -0800

Detailed explanation of Spring AOP framework based on XML configuration

Learning AOP in Spring is to realize relevant interception and cut in functions through configuration (XML based configuration and annotation based configuration). Strengthen the original operation, but do not affect the original operation. catalogue Learning AOP in Spring is to realize relevant interception and cut in functions through confi ...

Posted by Rottingham on Wed, 10 Nov 2021 02:58:58 -0800

mybatis caching mechanism

mybatis cache mechanism I mybatis provides cache support, which is divided into L1 cache and L2 cache L1 cache The first level cache is enabled by default in mybatis. It is a cache form with hashMap as the data structure. How do I verify the L1 cache? The following example queries the same data twice (or multiple times, twice is ...

Posted by Wayniac on Wed, 10 Nov 2021 02:02:49 -0800

Common monitoring jvm commands

Common monitoring jvm commands A pure smile The command involved in this article is jps jstat jmap jstack jinfo jps Command format jps [options] [hostid] [] optional options parameter list -l: output the full name of the main class or jar path-q: only LVMID(local virtual machine id) is output, that is, the unique id of the ...

Posted by ShadowBlade72 on Wed, 10 Nov 2021 01:45:23 -0800