Servlet processing (jQuery) Ajax requests
1. jQuery
jQuery is a JavaScript function library, which greatly simplifies JavaScript programming and is easy to learn. jQuery is the most popular open source js framework, and provides a lot of extensions.
2. Ajax
Ajax(Asynchronous JavaScript and XML) is a kind of web development technology to create interactive web applications. It is not ...
Added by Repgahroll on Tue, 29 Oct 2019 08:44:54 +0200
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
springCloud - rely on Spring Security to implement stateless distributed sessions using JWT
case
In the case of front-end and back-end microservices, the session is no longer suitable to be saved on the server side. Using redis can save the session, but it needs to be copied between redis clusters. If there are many users, the amount of data saved is also large.
JWT is a solution to implement stateless session mechanism.
1. What is s ...
Added by inaba on Thu, 24 Oct 2019 09:24:57 +0300
Some knowledge of React beginners
By valentinogagliardiTranslator: front-end witSource: medium
. bind(this) is not required when using arrow functions
Generally, if there is a controlled component, it has the following structure:
class Foo extends React.Component{
constructor( props ){
super( props );
this.handleClick = this.handleClick.bind(this);
}
handleClick(e ...
Added by Archy on Thu, 24 Oct 2019 04:08:44 +0300
Initial experience of wechat applet webSocket
WebSocket is a single TCP Connect to full duplex Communication protocol. WebSocket communication protocol was approved by IETF As standard RFC 6455 and supplemented by RFC7936. WebSocket API Also be W3C Set as standard.
WebSocket makes the data exchange between the client and the server easier, allowing the server to actively push data to the ...
Added by ceruleansin on Wed, 23 Oct 2019 19:39:05 +0300
mpvue quick start
Main characteristics
Using mpvue to develop applets, you will acquire the following capabilities based on the technical system of applets:
Thorough component development ability: improve code reusability
Complete Vue.js development experience
Convenient Vuex data management solution: easy to build complex applications
A quick mechanism to bui ...
Added by BlackKite on Mon, 21 Oct 2019 10:44:30 +0300
Dynamic capture and display of web page background generated PDF file stream
<script type="text/javascript" src="./js/pdfjs/pdfobject.js"></script>
<body>
<div id="pdfDiv" style="width:100%;height:620px !important;"></div>
<script type="text/javascript">
PDFObject.embed("URL?parameter=name", "#pdfDiv");
</script> ...
Added by paulrichards19 on Sun, 20 Oct 2019 18:15:13 +0300
Day13 httpServlet and java inheritance
I. httpServlet
1. guide pack
//Find the package by searching Maven servlet (class name) to pom.xml import package
<dependencies>
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysq ...
Added by hstraf on Sat, 19 Oct 2019 22:48:31 +0300
vue simple use of mock
I. mock
1, introduction
mock is an analog data generator designed to help the front-end develop independently of the back-end and help write unit tests. It can simulate Ajax and return simulation data, so that the front end does not need to call the back-end interface, which is convenient for testing.
2. vue directly uses mock
step1: inst ...
Added by BRAINDEATH on Thu, 17 Oct 2019 23:45:57 +0300
[play Python] create an intelligent voice alarm clock for girlfriend
Before reading this article, you should be at least a program ape that can install the operating system. You should know Linux, Python, and most importantly, you should have a girlfriend. Of course, it doesn't matter. After reading this article, you try to make such an alarm clock. Maybe...
Software and hardware list
Card reader and SD card ...
Added by kr3m3r on Wed, 16 Oct 2019 10:42:58 +0300