The development of dynamic perception program for distributed application system server_

I. function 1. Dynamic changes in the number of servers 2. The client can dynamically monitor the online server 3. Specific ideas: (1) as soon as the server is started, go to zookeeper to register the information (create). Pay attention to using temporary nodes when registering instead of permane ...

Added by Galahad on Sun, 26 Jan 2020 17:26:51 +0200

Java seckill system-2.7-jedis redis.clients.jedis.exceptions.jedisconnectionexception: problem solving

 1. application.properties #thymeleaf spring.thymeleaf.prefix=classpath:/templates/ spring.thymeleaf.suffix=.html spring.thymeleaf.cache=false spring.thymeleaf.content-type=text/html spring.thymeleaf.enabled=true spring.thymeleaf.encoding=UTF-8 spring.thymeleaf.mode=HTML5 # mybatis mybatis.type-ali ...

Added by flhtc on Sun, 26 Jan 2020 16:53:35 +0200

Apache Web page and security optimization -- web page compression

Article directory Preface: 1, Apache Web page optimization 1.1 web page compression 1.1.1 overview of apcahe web page optimization 1.1.2 gzip introduction 1.1.3 Apache compression module 1.1.4 configure web compression function 2, Apache Web compression experiment 2.1 compiling apache manually ...

Added by kujtim on Wed, 22 Jan 2020 11:12:52 +0200

Use OCSP protocol to send request to verify certificate status, OCSP verifies Apple P12 certificate status (valid | revoked)

In view of the company's need for Java server to verify the certificate, however, there are too few cases in Java implementation, searching hard for 2 days, Baidu, Google, OCSP protocol documents, finally achieved, can use this Demo to verify any OCSP protocol certificate!!! Find a lot, and finally ...

Added by pietbez on Sat, 18 Jan 2020 20:22:56 +0200

Talk about artemis' graceful shutdown enabled

order This paper focuses on the graceful shutdown enabled of artemis gracefulShutdownEnabled activemq-artemis-2.11.0/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java public class ConfigurationImpl implements Configuration, Serializable { //...... private boolean gracefulShutdownEnabled = A ...

Added by kitegirl on Sat, 18 Jan 2020 18:15:32 +0200

Spark on K8S (spark on kubernetes operator) FAQ

Spark on K8S (spark on kubernetes operator) environment construction and demo process (2) Common problems in the process of Spark Demo (two) How to persist logs in Spark's executor/driver How to configure Spark history server to take effect What does xxxxx webhook do under spark operator namespace ...

Added by diggysmalls on Fri, 17 Jan 2020 14:10:41 +0200

spring boot integrated dubbo enterprise full

1, What is Spring Boot? Spring Boot at this stage is too hot. Why? Because it is easy to use, simple to configure and fast to start, what is it? From the official website, we can see that it is a subproject of spring open source organization, which mainly simplifies the heavy configuration of spring, and Spring Boot embeds various Servlet conta ...

Added by darknuke on Wed, 15 Jan 2020 13:49:27 +0200

spring boot integration swagger bug1

Today, after writing several interfaces and preparing for testing, I found that swagger hung up. Then report the following unexplained error message There was an unexpected error (type=Method Not Allowed, status=405). Request method 'GET' not supported org.springframework.web.HttpRequestMethodNotSuppo ...

Added by deolsabh on Mon, 13 Jan 2020 14:52:55 +0200

Active MQ learning Broker

I. concept Equivalent to an ActiveMQ service instance Broker actually starts ActiveMQ in the form of code, embeds MQ into java code, so that it can be started at any time. When it is used, it can save resources and ensure reliability. 2, Start ActiveMQ according to different configuration files 1. First copy and rename activemq.xml in the ...

Added by rami103 on Fri, 10 Jan 2020 21:00:53 +0200

Java Filter does not block certain requests. Java Filter supports Ajax requests

================================ Copyright 2020-01-10 https://www.cnblogs.com/fanshuyao/   1, Java permission filter, such as login filter Configuration files are added to configure requests that are not intercepted. You can customize the rules that are not intercepted. There are three types: 1. Do not block requests containing / service ...

Added by kellerkind on Fri, 10 Jan 2020 19:33:30 +0200