Laravel jumps back to the page he visited before signing in
1. Jump to login page after Auth middleware check
That is, they fail the authentication check of the auth middleware, are intercepted by the auth middleware, and then jump to the login page.In this case, Laravel automatically jumps back to the page that was browsed before the user logged in by default.How does auth middleware do this?
Open th ...
Posted by bobcooper on Sat, 20 Jul 2019 10:09:54 -0700
ActiveMQ and Zookeeper High Availability Cluster
https://blog.csdn.net/xiaoxsen/article/details/79050842
Note: Close the firewall
Prerequisite:
Prepare three server nodes to install and deploy Zookeeper and ActiveMQ. My three nodes are 192.168.1.130, 192.168.1.163 and 192.168.1.165, respectively.
Inst ...
Posted by jbingman on Fri, 19 Jul 2019 00:07:47 -0700
cascade and inverse of hibernate in java
1.Cascade is a cascade action. In many_to_one, if cascade is used to cascade related objects, the following code can cascade to save Category objects.
Mapping File Settings in Book
<many-to-one name="category" column="cid" cascade="save-update"/>
When saving a book, if the corresponding category of the book is not saved, save the c ...
Posted by zeberdeee on Thu, 18 Jul 2019 09:43:44 -0700
Some pits encountered when front-end AJAX requests cross-domain
From: https://icewing.cc/post/about-cross-origin.html
Access-Control-Allow-Origin Problem
Access-Control-Allow-Headers Problem
cookie problem
OPTIONS request
Complete code
In the past two days, we have to study the cross-domain problem because we need to use angular's $http service to access data and the interface is under another ...
Posted by xbase on Wed, 17 Jul 2019 13:35:14 -0700
Java and WebSocket Develop Web Chat Room
I. Project Introduction
WebSocket is a new protocol of HTML5. It realizes full-duplex communication between browser and server. Here we will use WebSocket to develop web chat room. The front-end framework will use AmazeUI, the background will use Java, and the editor will use UMEditor.
II. Knowledge Points
Web front-end (HTML+CSS+JS) and Jav ...
Posted by max_power on Wed, 17 Jul 2019 10:53:22 -0700
Hand-in-hand teaching you to read the source code, View event registration and receive detailed analysis
The Touch event delivery mechanism of Android only knows the process after events are passed into Activity, but how these events are passed to Activity has been unclear. Now let's go back and sort out a few things and share them with you.
The source code was used to share the creation and loading of View and the drawing process of View.
...
Posted by l3asturd on Mon, 15 Jul 2019 13:40:19 -0700
Use template method pattern to build permission filters
Scene analysis
In web applications, almost all of our systems involve the processing of privileges. How to design privileges and control privileges is a problem we can not ignore in Web development. Although there are many excellent security processing frameworks like spring security and shiro in the open source world, their requirements are re ...
Posted by goclimb on Sun, 14 Jul 2019 10:21:40 -0700
Summary of usage of python requests
Summary of usage of python requests
Requests is a very practical Python HTTP client library, which is often used when writing crawlers and testing server response data. It can be said that Requests fully meet the needs of today's network
This article is all from official documents. http://docs.python-requests.org/en/master/
pip install req ...
Posted by xyn on Fri, 12 Jul 2019 19:07:35 -0700
DelayQueue
Let's talk about the actual scene. In our development, we have the following scenarios a) Close idle connections. There are many client connections in the server, which need to be closed after a period of idle time. b) Caching. Objects in the cache need to be removed from the cache because they exceed the idle time. c) Task timeout processing. ...
Posted by fiorefrank on Fri, 12 Jul 2019 13:54:28 -0700
mac installation zookeeper pseudo cluster
Catalogue 1. Configuration 2. Start all servers of zookeeper pseudo cluster 3. Access Client 4. Writing startup scripts
1. Configuration
zookeeper download address: http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.4.6/ Deploy three servers on a machine, create a folder zookeeperLab under the specified folder, create three folders server ...
Posted by Hitch54 on Thu, 11 Jul 2019 14:23:51 -0700