Java Web XSS attack defense

XSS overview Cross site scripting (XSS). The malicious attacker inserts malicious Script code into the Web page. When the user browses the page, the Script code embedded in the Web will be executed, so as to achieve the purpose of malicious attack on the user. Implement Filter and XSS Filter package com.bj58.qf.filter; import javax.servlet ...

Posted on Thu, 26 Mar 2020 08:32:50 -0700 by sharp.mac

[Spring Security + OAuth2 + JWT introduction to practice] 3. User defined authentication logic

brief introduction In the previous step, we have completed the login, using the user name and password provided by security by default. In this chapter, we implement user-defined user name and password login. Handling user information acquisition logic Security handles the user information acquisition logic by default. To implement its own ...

Posted on Sun, 01 Mar 2020 02:02:13 -0800 by Julian

The next node of binary tree

Article directory 8. Next node of binary tree Title Link Title Description Solving problems code implementation 8. Next node of binary tree Title Link Niu Ke LAN Title Description Given a binary tree and one of its nodes, find the next node in the middle order traversal order and return. N ...

Posted on Tue, 25 Feb 2020 04:51:44 -0800 by php_dave

Create and call WebService in Intellij IDEA

Article directory Create and call WebServices in Intellij IDEA Zero. Environmental preparation 1, Create WebServices 1. Create a new WebServices project 2. Program preparation 3. Dependency configuration 4. Operation test 5. generate wsdl 2, Call WebServices 1. Create client package 2. Generate j ...

Posted on Sat, 11 Jan 2020 22:40:48 -0800 by kosmidd

Using Ant in Intellij IDEA for automatic test and generating HTML format test report

Article directory 1, Environmental preparation 1. install Ant 2. configure Ant 3. Test whether Ant is configured successfully 2, Write test code 1. Write test class in src directory 2. Write a test class in the test directory (if not, create a new test and set it to Test Resources Root) 3, Write ...

Posted on Sat, 11 Jan 2020 22:35:03 -0800 by audiomove

Sprboot 2 returns RESTful-style data globally, uniform exception handling

Returns RESTful style data globally and uniformly, primarily a method of implementing the ResponseBodyAdvice interface, which modifies the return value before output.Use the comment @RestControllerAdvice to intercept exceptions and handle them uniformly. Development environment:IntelliJ IDEA 2019.2.2jdk1.8Spring Boot 2.2.2 1. Create a SpringB ...

Posted on Sat, 21 Dec 2019 06:25:54 -0800 by markjoe

idea2019 registration code, pro test available!

It's more than half of 2019. I'm so busy recently. I haven't taken care of the messages here for a long time. Today, I saw many students' feedback according to the previous article. IntelliJ IDEA installation crack permanent crack The steps in can't crack the idea. In fact, the idea and patch in ...

Posted on Thu, 31 Oct 2019 23:58:45 -0700 by mrclark219

Spring Conditional annotation @ Conditional

1, @ Conditional is a new annotation provided by spring 4. Its function is to judge according to certain conditions and register bean s to the container if the conditions are met. Code of @ conditional // // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompi ...

Posted on Tue, 22 Oct 2019 13:55:04 -0700 by aouriques

Thymeleaf Common Grammar: Operator of Expressional Grammar

The constants of Thymeleaf expression grammar are divided into string constants, number constants, Boolean constants and null constants.Operators are divided into arithmetic operators, relational operators, conditional operators and no operators. Development environment: IntelliJ IDEA 2019.2.2Spring Boot version: 2.1.8 Create a new Spring Boo ...

Posted on Mon, 14 Oct 2019 11:39:34 -0700 by TalonFinsky

Java Dynamic Proxy Source Analysis

Java Dynamic Proxy Source Analysis Interface and proxy classes Interface package cn.jastz.java.reflect.dynamic.proxy; /** * @author zhiwen */ public interface Foo { void bar(); void rtest(); void rtest1(); void rtest2(); } proxy class // // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower d ...

Posted on Sun, 13 Oct 2019 09:42:37 -0700 by DigitalNinja