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
Knowledge point ③: druid configuration and use in Spring Boot
Spring Boot druid configuration
rely on
Add druid dependency to Spring Boot project
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>
To configure
spring.datasource.url=
spring.datasource.username=
spring.datasour ...
Posted by madd_maxx on Sun, 05 Apr 2020 18:53:31 -0700
Spring boot using RabbitMQ code example
Example explanation
In this example, slf4j-log4j12 is used to manage logs, and the logback classic dependency of spring boot start AMQP needs to be excluded to prevent conflicts.
Key points of message queuing
Producers: procedures for sending messages
Consumer: a program that listens for and receives consumer messages
Message: a stream of bin ...
Posted by darkvengance on Sun, 05 Apr 2020 18:23:16 -0700
Data Source Management | Master-Slave Library Dynamic Routing, AOP Mode Read-Write Separation
Source code for this article: GitHub. Click here || GitEE. Click here
1. Application of Multiple Data Sources
1. Basic Description
In relatively complex application services, configuring multiple data sources is a common phenomenon, such as: configuring a master-slave database to write data, and configuring a slave database to read data. This ...
Posted by dey.souvik007 on Sun, 05 Apr 2020 17:38:43 -0700
[QT] QT from scratch tutorial (10): QT layout management QLayout
.
QT provides a class of QLayout for layout management, which can solve this problem well. Common layout management includes QVBoxLayout, QHBoxLayou ...
Posted by ednark on Sun, 05 Apr 2020 08:27:35 -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
Spring Boot tutorial (XXVII) receiving uploaded multi file files
Construction project
For example, to create a spring MVC project, you need the start dependency of spring boot starter thymeleaf and spring boot starter web. For example, if you can upload files to the server, you need to add tags to the web.xml to do the relevant configuration, but in the sringboot project, it has been done for you automatica ...
Posted by renob on Sun, 05 Apr 2020 04:41:32 -0700
SpringBoot learning notes-014
Integrate Mybatis
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.2</version>
</dependency>
Steps:
1) . configure data source related properties (see Druid in the previous section)
2) . creating tables for data ...
Posted by Mhz2020 on Sun, 05 Apr 2020 03:41:40 -0700
Spring cloud gateway dynamic routing
Summary
Online project publishing generally has the following schemes:
Downtime release
Blue green deployment
Rolling deployment
Grayscale release
This kind of release is usually released at night or during major version upgrade. Because it needs to be stopped, now everyone is studying Devops scheme.
Blue green deployment requires t ...
Posted by Maq on Sat, 04 Apr 2020 23:15:39 -0700
Analysis of Java Dynamic agent
Java's dynamic Proxy mainly refers to the Proxy class under the java.lang.reflect package. The InvocationHandler interface under the same package will be used in the use process.
1. The proxy class provides a static method object newproxyinstance (classloader loader, class <? > [] interfaces, invocationhandler h) to generate proxy objects ...
Posted by nyk on Sat, 04 Apr 2020 15:18:16 -0700