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

The case of network programming based on HttpClient Download Text and picture download text and picture for Android

The case of downloading text and picture network programming based on HttpClient for Android 1, Operation effect 2, Implementation steps 1. Create android app DownloadTextImageByHttpClient 2, Main layout file activity main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://s ...

Posted by prasitc2005 on Sat, 02 May 2020 19:28:17 -0700

Eight of three phases of Linux: Architecture nginx practical application

8, Architecture nginx practical application (1) Introduction of web service software There are three kinds of software commonly used to provide static Web services: 1 Apache: This is the mainstream of small and medium-sized Web services, the big brother of web servers. 2 Nginx: The mainstream of Web services for large-scale websites, onc ...

Posted by cdinca on Sat, 02 May 2020 14:52:31 -0700

The installation and use of nginx under Windows

The original application ran with a single node, and the user always complained that the service response was very slow. In order to improve the user experience, we thought of trying to alleviate the multi-node load balancing Because of the pressure of the server, we found the window version of nginx. According to the introduction of the para ...

Posted by onlinegamesnz on Sat, 02 May 2020 07:18:40 -0700

SPARQL basic mode query

The last one is a brief introduction to SPARQL. This article introduces the basic schema query of SPARQL Still use the example from the previous article: <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:vCard='http://www.w3.org/2001/vcard-rdf/3.0#' > <rdf:Description rdf:about="http://somew ...

Posted by Levan on Fri, 01 May 2020 22:27:02 -0700

Struts 2 notes -- File Download

Struts 2 provides the stream result type, which is specifically used to support the file download function. The following four properties are required to configure the result of stream type. contentType: Specifies the file type of the downloaded file inputName: Specifies the entry input stream of the downloaded file contentDispositio ...

Posted by greeneel on Fri, 01 May 2020 21:03:00 -0700

Java learning note 43 (brief introduction to print stream and IO stream tool classes)

Print stream: There are two classes: PrintStream and PrintWriter. The methods of the two classes are the same. The difference lies in the constructor PrintStream: construction method: receive File type, receive string File name, receive byte output stream PringWriter: construction method: receive File type, receive string File name, receive byt ...

Posted by strangermaster on Thu, 30 Apr 2020 05:20:32 -0700

Hbase API create table error record for Docker container deployment cluster

Hbase API create table error record Demo method: import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.Admin; import org.apa ...

Posted by fusionxn1 on Thu, 30 Apr 2020 02:57:56 -0700

Spring boot log Foundation

Springboot configuration log configuration file location logging.config: classpath:logging/logback.yml Spring boot log classification log4j: an open source log component implemented by apache logback: it is also designed by the author of log4j. It has better features. It is a log framework used to replace log4j and is the native implementation ...

Posted by aris1234 on Tue, 28 Apr 2020 19:41:38 -0700

Lesson 02: Flink starter WordCount and SQL implementation

In this lesson, we mainly introduce the entry program of Flink and the implementation of SQL form. In the last lesson, we have explained Flink's common application scenarios and architecture model design. In this lesson, we will start from a simple WordCount case and implement it in SQL mode at the same time, laying a solid foundation for the l ...

Posted by scoppc on Tue, 28 Apr 2020 03:13:19 -0700