concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 3

Today's project, because of the use of spring asynchronous concurrent execution, this error occurred. And occasionally, especially when the project is just started, such problems may occur java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 3 at java.util.concurrent.FutureTask.report(FutureTask.java:122) ...

Posted by blacklotus on Sun, 05 Apr 2020 19:58:19 -0700

The responsibility chain pattern of Java design pattern

The responsibility chain pattern of Java design pattern Purchase approval project of school OA system: requirements are Traditional solution OA system approval, traditional design solution Basic introduction to responsibility chain mode Responsibility chain mode to solve OA system procurement approval Source co ...

Posted by mwgi2005 on Sun, 05 Apr 2020 07:41:09 -0700

dockerfile production details 1

1. Docker virtual image production practice I 1) Docker commit enables the container to be submitted as a new image. The submitted image automatically enters the image list of the current system (the contents of the container image are complete); docker commit 7ec01484db55 centos7:v1 docker images 2) Docker export can implement containe ...

Posted by nafetski on Sun, 05 Apr 2020 06:03:50 -0700

Developing web project with eclispe

1. After opening eclipse, create a new web project: new -- dynamic web project Click Finish to finish the new project! Adjust font size: window -- preferences Select basic, web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-i ...

Posted by jack5100nv on Sat, 04 Apr 2020 03:19:53 -0700

maven multi environment configuration (multi environment configuration, development environment, test environment and development environment are packaged separately)

1. Put the public configuration file in resources, the development environment, production environment and test environment in resources.dev, resources.test and resources.prod respectively 2. Set in pom.xml <build> <resources> <resource> <!--Put the corresponding unique resources(dev,tes ...

Posted by ambivalent on Fri, 03 Apr 2020 07:13:34 -0700

Spring MVC uses stub layer

Premise of use: stub dummy data is used when the interface does not exist (i.e. message 404) Entrance: In BusinessExceptionHandlerAdvice NoHandlerFoundException Exception capture method Flow chart   Where is the configuration file read? In oa/web/controller/handler/EnvironmentInit.java, EnvironmentInit implements ApplicationListener ...

Posted by david4u on Fri, 03 Apr 2020 05:10:15 -0700

Search engine - Solr cluster deployment

Key contents Three zookeeper nodes are required Four solr nodes. Using pseudo distributed to implement solr cluster. Three zookeeper instances and four tomcat instances are required, which can be simulated on a virtual machine. More than 1G memory is recommended for virtual machines. Solr instance building Step 1: crea ...

Posted by zorgon on Wed, 01 Apr 2020 19:42:14 -0700

Integrating Spring Session with Redis

There are so many specific features of Spring Session. The specific content can be learned from the document. The author makes a summary. The features of Spring Session include but are not limited to the following: Use GemFire to build httpSession of C/S architecture (not concerned) Use the third-party warehouse to realize the cluster sessi ...

Posted by ron814 on Wed, 01 Apr 2020 06:13:29 -0700

Spring boot -- loading in the preparation stage of spring application

Learning notes are notes made according to my own needs and understanding after learning the core technology of Spring Boot 2.0 in-depth practice by brother Ma on mooc.com. Preface Spring boot is built based on spring, that is to say, Spring Framework is the basis of learning spring boot well. First of all, the premise of und ...

Posted by NiallThistle on Sun, 22 Mar 2020 09:18:17 -0700

spring mvc import resource path problem [the simplest but also the most deadly]

There are two ways to write in the import resource path A classpath, a classpath* So what's the difference between the two? 1.**classpath: * * only find files in your class path; 2. * * callsspath *: * * not only includes class path, but also includes jar file (class path) for searching, * * * classpath *: * * * is very important for multi ...

Posted by superdezign on Tue, 17 Mar 2020 08:25:54 -0700