java high concurrent programming and thread safety

Code has multiple threads running at the same time, and these threads may run the same code at the same time. If the result of each run is the same as that of a single thread, we think it is thread safe. Thread insecurity means that the thread does not provide access protection, and multiple threads may change the data successively, resulting i ...

Posted by Jtech inc. on Fri, 18 Oct 2019 11:59:57 -0700

Installation of Dubbo monitoring center

You need to install tomcat and then deploy the monitoring center. If the monitoring center and the registry are on the same server, no configuration is required. Step 1: install tomcat in linux first Step 2: decompress Step 3: import dubbo-admin-2.5.4.war registry file. If you can't find it, you can send it to me personally. Step 4 ...

Posted by kevdoug on Fri, 18 Oct 2019 08:28:09 -0700

SpringBoot admin+Eureka + nail notification

I. Effect Login account + password Monitoring service View live logs Nail notification 2. What is Spring Boot Admin? Spring Boot Admin is an open source community project for managing and monitoring spring boot applications. The application, as the Spring Boot Admin Client, registers with the Spring Boot Admin Server (via HTTP) or uses the ...

Posted by warpdesign on Thu, 17 Oct 2019 20:58:42 -0700

HTTP access protocol converted to HTTPS

Preface Recently, I plan to write an applet, and then go to the applet development platform to fill in the request legal domain name. I found that only https protocol is supported.So I try to convert HTTP to HTTPS. First, I want to talk about my configuration: Alicloud server Operating system: CentOS 7.4 64 bit Web server: Tomcat 9.+ Detailed ...

Posted by mjedman1 on Thu, 17 Oct 2019 00:12:30 -0700

It's enough for MyBatis to explain in detail

Chapter 1 details of MyBatis framework configuration file 1.1 typeHandlers type converter Whenever MyBatis sets the parameter to PreparedStatement or gets the value from the ResultSet result set, TypeHandler is used to handle the conversion between database type and java type. The following table describes the default TypeHandlers 1.1.1 c ...

Posted by vahidi on Tue, 15 Oct 2019 17:43:17 -0700

Add LZO compression support for Hadoop

The compression mode with lzo enabled is very useful for small-scale clusters. The compression ratio can be reduced to about 1 / 3 of the original log size. At the same time, the speed of decompression is faster. install Prepare jar package 1) Download lzo's jar project firsthttps://github.com/twitter/hadoop-lzo/archive/master.zip 2) the na ...

Posted by fastfingertips on Tue, 15 Oct 2019 10:36:22 -0700

springboot solves the problem that the @ RequestBody parameter in the controller cannot read the body content after the interceptor reads the body content of the web request input stream parameter.

In the previous chapter, we briefly introduced the source code demo of the interceptor. , there is no exception when getting get parameter in interceptor, but after reading body content in input stream in interceptor, @ RequestBody annotation parameter in controller cannot get content The following desc ...

Posted by smokebusted on Tue, 15 Oct 2019 10:21:40 -0700

[step by step implementation of advertising system in Spring cloud] configuration project structure & Implementation of Eureka service

Parent project management First, before creating the delivery system, let's take a look at our engineering structure: Mscx ad sponsor is our advertising system. For the above structure, we need to create a parent project mscx ad first To write the pom of the parent project to manage our unified dependency information. <?xml version="1.0" en ...

Posted by r2ks on Tue, 15 Oct 2019 09:06:19 -0700

Shell Programming case Multi-Branch Statement, Loop Statement (for, while, etc.), Shell Function, Shell Array

case multi-branch statement The structure of case statement: Execute different command lines for different values of variables case variable value in Mode 1) Command Sequence 1 ;; Mode 2) Command Sequence 2 ;; ..... *) Default command sequence esac Example: Character type recognition: Prompt the user to enter a character ...

Posted by merrydown on Sun, 13 Oct 2019 18:14:14 -0700

Tomcat Virtual Host or Secondary Domain Name Configuration

Project Host Configuration Based on Virtual Directory In Tomcat, the default virtual directory is webapps, but for the project location, we can also set up Context to achieve, a Host can set up more than one Context; <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xm ...

Posted by Wldrumstcs on Sun, 13 Oct 2019 11:27:47 -0700