axios in vue

axios promise based on http client for browser and nodejs characteristic Browser side initiates XMLHttpRequests request http request from node Support Promise API Listen for requests and returns Conversion request and return Cancellation request Automatically convert json data Client support mitigation install Using npm: npm install axios -- ...

Posted by mjahkoh on Fri, 07 Feb 2020 10:38:51 -0800

Some problems need to be fixed when using ueditor

Original address: Some problems need to be fixed when using ueditor 1. Adjust the order of pictures to be uploaded Modify: dialogs/image/image.js The last segment of line 718: uploader.on('uploadSuccess', function (file, ret) { var $file = $('#' + file.id); try { var responseText = (ret._raw || ret), ...

Posted by batman on Fri, 07 Feb 2020 10:13:12 -0800

K8S single master deployment 3: apiserver + controller manager + schedule

All the following operations are carried out at the master end Server role assignment role address Installation components master 192.168.142.220 kube-apiserver kube-controller-manager kube-scheduler etcd node1 192.168.142.136 kubelet kube-proxy docker flannel etcd node2 192.168.142.132 kubelet kube-proxy docker flannel etcd 1, A ...

Posted by wdallman on Fri, 07 Feb 2020 08:46:14 -0800

What is Redux, why and how to use Redux

1. What is Redux Official explanation: Redux is a predictable state container for JavaScript apps. This means that Redux is a predictable state container for js applications 2. Why use Redux The following illustration shows how parent-child components communicate when Redux is not used and when Redux is used In the absence of Redux, if co ...

Posted by Zssz on Fri, 07 Feb 2020 08:15:44 -0800

K8S - ETCD deployment

Role assignment: Environmental deployment All virtual machines have turned off the firewall and selinux core protection functions Practical operation Build working directory to store binary software package [root@master ~]# cd / [root@master /]# mkdir k8s Install ETCD database (three copy mechanism)master (download the ca Certificate creatio ...

Posted by coolphpdude on Fri, 07 Feb 2020 07:05:24 -0800

Serialization operation of Django

Written in front Recently, I was trying to drum up wechat applets. I wanted to use Django as the back end to display data in wechat applets. When I write Django, I usually directly throw the QuerySet object to the template and then render it. But in the wechat applet, this object cannot be accepted. Y ...

Posted by JPark on Fri, 07 Feb 2020 07:01:23 -0800

IDEA creates Spring Boot + MySql + mybatis project

1. Create a new Spring Boot project The specific steps are as follows Select the appropriate dependency: Under src/main/resources of the spring boot project, the application.properties file exists by default. This is the configuration file of the spring boot project. Almost all related configurations ...

Posted by dennissanche on Fri, 07 Feb 2020 05:21:37 -0800

Java Backend Security Development Spring Security Development REST Service Chapter 4-4 - SMS Authentication Code

1. Configuration related 1.1 AbstractChannelSecurityConfig Abstract class encapsulating authentication logic for Http pages ApplyPasswordAuthentication Config sets the default form login authorization authentication route for HttpSecurity, and imoocAuthentication SuccessHandler, imoocAuthentication ...

Posted by TheSeeker on Thu, 06 Feb 2020 21:11:52 -0800

The similarities and differences of HashMap and ConcurrentHashMap modification in single thread and multi thread traversal

1, Scenario introduction JRBM has a demand for detecting the online situation of team Websocket: The existing concurrenthashmap < teamid, jrbmsession > map, jrbmsession includes session and lastlivetime. The front end sends heartbeat to the service end through ws connection every 3s. After re ...

Posted by HaXoRL33T on Thu, 06 Feb 2020 04:28:58 -0800

K8S single master deployment I: environment planning, ETCD deployment

Experimental environment planning Summary Use VMwork virtual machine to deploy small cluster with single master and double nodes, and install etcd on both master and node to implement etcd cluster. Software adopted version Software name Edition Linux system Linux version 4.8.5 Kubernetes 1.9 Docker Docker version 19.03.5 Etcd v3.3. ...

Posted by Cinds on Wed, 05 Feb 2020 06:33:21 -0800