36. Spring boot configures Cors to solve cross domain requests
CORS (cross origin resource sharing) "cross domain resource sharing" is a W3C standard. It allows browsers to send Ajax requests to cross domain servers, breaking the resource limit that Ajax can only access the site. CORS is used in many places. JS payment of wechat payment is to send cross domain requests to wechat servers through ...
Posted by insane on Sat, 02 May 2020 19:32:13 -0700
java interface calls memcached
1. Before connecting to the memcache server, set up the memcache server in advance, remember the ip and port number of the created server, and use the ip and port number to connect using java code.
2. Start using java links
2.1 introduce the jar files memcached-2.0.1.jar and memcached-1.1.jar into the project
2.2 con ...
Posted by ineedhelp on Sat, 02 May 2020 12:42:36 -0700
Two ways for nginx to turn on ssl and redirect http to https
1 Introduction
Nginx is a very powerful and popular high-performance Web server. This article explains how nginx integrates https and redirects http to https.
https related articles are as follows:
(1)Spring boot integration https is so simple
(2)Key knowledge and key tools of HTTPS Keytool and keystore Explorer
(3)Two ways for spring boot to r ...
Posted by damienwc on Sat, 02 May 2020 10:20:58 -0700
Spring boot integrates wechat applet to realize login, addition, deletion, modification and query
Project Description: in the wechat applet, log in and verify with the spring boot operation database. I use spring boot to integrate the mybatis plus and mysql operation database
1. Preparation before development
1.1 prior knowledge
java Foundation
SpringBoot simple Basics
1.2 environmental parameters
Development tools: IDEA
Basic environm ...
Posted by Ixplodestuff8 on Sat, 02 May 2020 02:21:48 -0700
Spring's Bean internal method call cannot use AOP facet (CacheAble annotation is invalid)
Spring's Bean internal method call cannot use AOP facet (CacheAble annotation is invalid)
Preface
Today, in the process of using Spring cache's Cacheable annotation, we encountered a problem of invalidation of Cacheable annotation. The reason for checking the problem is that Spring's Cacheable annotation is implemented based on Spring AOP, but ...
Posted by Peuplarchie on Fri, 01 May 2020 22:01:28 -0700
Implementation of Bootstrap Table query
Implementation of query ideas:
1. Define a local Toolbar including the buttons of new, save and new
2. Define a query form on the right that contains query criteria and query clear button
3. Define a Table
The effect is as follows:
The code is as follows
<div class="container-fluid">
<div>
<div id="toolbar ...
Posted by koenigsbote on Fri, 01 May 2020 17:39:34 -0700
main start Jetty Server web project
main start Jetty Server mode
1, web engineering starts jetty server through main
1.JettyServerLauncher
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
public class JettyServerLauncher {
private static final int DEFAULT_PORT = 8080;
private static final String DEFAULT_WEBAPP = "WebRoot";
priv ...
Posted by orionellis on Fri, 01 May 2020 14:22:37 -0700
React Native SVG Animated
From: Real native SVG stroke animation
stroke property
Stroke defines the stroke color
stroke="#0078ff"
strokeWidth defines the width of the stroke
strokeWidth="3"
Properties used to create dashes:
strokeDasharray creating dashed lines
// Suppose a space of 5 pixels, a space of 5 pixels
strokeDasharray="5"
// What we can see is a 5-pixel ...
Posted by keakathleen on Fri, 01 May 2020 10:53:07 -0700
Using bootstrap 4 + vue2 to realize paging query
Write in front
the project is designed for front-end and back-end separation, using Nginx as the front-end resource server, and realizing the reverse proxy of the back-end service. The background is Java Web project, which uses Tomcat to deploy services.
Front end framework: bootstrap 4, Vue.js2
Background framework: spring boot, sprin ...
Posted by discomatt on Fri, 01 May 2020 09:25:22 -0700
Beginner's log 01 / 13 learning supplement · String
Here are the use of some methods in String type, including:
Extraction of elements in string;
Appending of elements in string;
String ignore case for comparison;
Conversion of Chinese and English letters in string;
Get string length;
Replace the element or substring in the string;
String truncation;
Eliminate the firs ...
Posted by tqla on Fri, 01 May 2020 02:52:53 -0700