9. Implementing CORS Cross-Domain Elegantly with Spring Boot
Preface
Our springboot rack already contains mysql,redis, timed tasks, mail services, SMS services, file uploads and downloads, docker-compose building mirrors, and more.
Let's move on to another common problem.In general, the front and back ends are separated, and the original intention of this scaffold is to separate the front and back ends, ...
Posted by damnsaiyan on Mon, 09 Dec 2019 03:44:44 -0800
Use Python to implement Plant Wars Zombie Code!
Preface
The text and pictures in this article are from the Internet. They are for study and communication only. They do not have any commercial use. The copyright is owned by the original author. If you have any questions, please contact us in time for processing.
Author: marble_xu
GitHub address: https://github.com/marblexu/PythonPlantsVsZombi ...
Posted by ali_2kool2002 on Sun, 08 Dec 2019 21:26:11 -0800
[xmind] generate mind map using Java
Preface
In our daily work and study, we often use mind mapping as a tool to transform abstract and intangible thinking into tangible and concrete images, which is a great artifact to clarify ideas and sort out logic.
To be exact, mind mapping is not a specific tool, but a method. It's the Tao, not the art. When landing, we usually need externa ...
Posted by jarvishr on Sun, 08 Dec 2019 20:28:02 -0800
pm2 remote Publishing
Create configuration item
Create a new pm2 configuration file ecosystem.config.js in the root directory of your git warehouse, as shown in the comments, or execute the pm2 init initialization file ecosystem.config.js.
module.exports = {
apps : [{
//pm2 name
name: "nextcn",
//pm2 run script
script: "./app.js",
//environment va ...
Posted by mligor on Sun, 08 Dec 2019 19:14:23 -0800
Deep understanding of this binding principle
Preface
A while ago, I watched the comprehensive parsing of this in JavaScript you don't know. It was very good to talk about. My little buddies who haven't yet seen it grabbed the time to learn. Here I deliberately sorted out and summarized a wave to share the learning.Before that, you can understand About this, call, applay, and bind This art ...
Posted by arbelo on Sun, 08 Dec 2019 08:40:03 -0800
Two solutions of rolling penetration
Scroll through: the page slides out of a pop-up window. When we touch the screen with our fingers, we will find that the content under the pop-up window is still scrolling.
Scenario 1:
The first way to find out is to add a class (generally the body element) to the overflow: scroll: element when the pop-up window is triggered. Remove this class ...
Posted by jworisek on Sun, 08 Dec 2019 08:34:20 -0800
Traditional way and plug-in way realize paging function pageHelper plug-in respectively
Implement paging: there are two ways: traditional paging and classification based on pageHelper plug-in. The latter is recommended
First, create a pageUtil tool manually to record all kinds of information of paging, and then use the tedious way to call data
pageUtil class can be customized as required
package com.imooc.project.util;
/**
...
Posted by lwq on Sun, 08 Dec 2019 07:44:01 -0800
10. Spring boot simple and elegant integrated Swagger2
Preface
What is swagger2, let me not say here, is a simple interface document for front-end and back-end debugging.
Actually, I didn't think about using swagger before.Because I used YAPI before, but this is a separate tool.And it's open source, so it's easy for the whole team to work together.But if we're sitting on a personal project here, we ...
Posted by seran128 on Sun, 08 Dec 2019 06:05:54 -0800
How to create a wonderful rainbow loading effect with pure CSS
Effect preview
Online demo
Press the "click preview" button on the right to preview on the current page, and click the link to preview in full screen.
https://codepen.io/comehope/pen/vjvoow
Interactive video tutorial
This video is interactive. You can pause the video at any time and edit the code in the video.
Please use chrome, safa ...
Posted by goa103 on Sun, 08 Dec 2019 05:58:25 -0800
Add interest to the web page with Github's 50000 star css animation library
How much can css animation do?
Github has a very good animation project with 50000 stars!
Project address: https://github.com/daneden/animate.css
Online effect display:
https://daneden.github.io/animate.css/
There is only one css file in the whole project of animate, and the use method is very simple ...
Posted by greenday on Sun, 08 Dec 2019 05:34:57 -0800