Spring boot - @ controlleradvice intercepts exceptions and handles them uniformly

SpringBoot is the product of a series of problems to simplify the creation, operation, debugging and deployment of Spring applications, The feature of automatic assembly enables us to pay more attention to the business itself rather than the external XML configuration. We can easily build a WEB project by following the specification and introdu ...

Posted by lssjg on Sun, 22 Dec 2019 03:49:47 -0800

Summary of wechat development and learning (4) - user defined menu (2) - user defined menu query interface

Custom menu query interface After using the interface to create a custom menu, developers can also use the interface to query the structure of the custom menu. In addition, please note that after the personalized menu is set, the default menu and all personalized menu information can be obtained by using this customized menu que ...

Posted by wstran on Sat, 21 Dec 2019 12:20:06 -0800

WeChat public number material management

1, There are two ways to upload permanent picture materials: 1. direct uploading of public number material management 2. Send POST request Use the curl command to upload an example: curl -F media=@pro_nlp.jpg "http://file.api.weixin.qq.com/cgi-bin/material/add_material?access_token=14_3-OW6zGI-yD1LzYlhovytEU81rqH6gDIrYimb4x ...

Posted by mator on Sat, 21 Dec 2019 11:09:11 -0800

Summary of DataTables

catalog Summary of DataTables introduce Basic configuration Server paging search summary Summary of DataTables After using DataTables for some time, it is a very powerful table plug-in. Keep updating. Official website: https://datatables.net/ introduce A simple demo <html> <head> <link rel="stylesheet" ...

Posted by Zallus on Sat, 21 Dec 2019 08:56:13 -0800

JS -- encapsulate slow motion (variable speed) animation function -- add multiple arbitrary multiple attributes

Encapsulate slow motion animation function - add multiple arbitrary attributes   On the basis of adding any attribute to the original slow motion animation function, the following changes have been made 1. The original function animate(element, attr, target), three variables, is replaced by json object to install a pair: attribute: the value of ...

Posted by dcinadr on Fri, 20 Dec 2019 06:15:35 -0800

The use of Aplayer.js music player in Asp.Net MVC

1. Foreword: Apter.Js is a lovely and beautiful Js music player. I've learned and made some of it before. Now I use mp3 format to develop it in. Net. Pipe network https://aplayer.js.org/ 2. Start with: Just add a jQuery.js and APlayer.min.js and APlayer.min.css to the project. Look at a simple Chestnut: <link rel="stylesheet" href="~/S ...

Posted by elgordo1960 on Fri, 20 Dec 2019 01:58:59 -0800

[Object Object] Solution JSON.stringify()

[Object Object] Description [object Object] is the string form of the object because the toString() method of the Object object is implicitly called in the form: "[object Object]". [object Object object] represents only one object, the current object toString() is not parsed correctly, and JSON.stringify() can be used to avoid this pr ...

Posted by Mikell on Thu, 19 Dec 2019 20:09:22 -0800

Docker implements data persistence

Due to the explosion of Docker technology, companies of all sizes are now using Docker.Friends who are familiar with Docker know that DOcker containers run for a lifetime and that if a docker container fails, it means that the data in the container will also be lost.So data is important for the enterprise!How to persist data in docker containe ...

Posted by Ameslee on Thu, 19 Dec 2019 14:53:30 -0800

jQuery uses Ajax to pass json to php for processing

First look at the renderings This is a way to send the login information of html page to php page through ajax using json data. php processes the data and then sends it back to html page for display js code <script type="text/javascript"> $(function(){ $("#btn").click(function(){ $.ajax({ url:'bac ...

Posted by jkewlo on Thu, 19 Dec 2019 10:23:19 -0800

About using fastjson to unify the serialization response format.

Absrtact: in fact, it's a very simple way to deal with it. It's not elegant enough, or fast JSON has not been found to provide a convenient way to deal with it. So record the process of dealing with the problem. Objective: all api requests, i.e. responses, are processed in a unified format for the content of application [JSON]. For example: the ...

Posted by xadmin on Wed, 18 Dec 2019 11:35:03 -0800