IDEA uses IDEA to build SSM framework projects

1. New Project Create a new Maven project in IDEA using the Maven Archetype prototype: maven-archetype-webapp The new project structure is: 2. New package directory New Java Code Directory: src.main.java New hierarchical model package under src.main.java, groupId with project (for reference only) common: store global variables, public enum ...

Posted by Felex on Sat, 04 Apr 2020 10:17:31 -0700

spring boot jap+mybatis druid multi data source configuration

In fact, it is not difficult to configure spring boot jap+mybatis druid with multiple data sources The key cannot be confused. Otherwise, after the configuration is completed, the connection of the druid data source may explode some strange errors, such as connection timeout, connection unavailable, etc Reference resources: Create a DataSour ...

Posted by marcusb on Sat, 04 Apr 2020 04:01:17 -0700

[Seata microservice distributed transaction] 2. Construction of Seata microservice distributed transaction project

Citation dependency <!--seata--> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-seata</artifactId> <exclusions> <exclusion> <artifactId>seata-all</artifactId> <groupId>io.seata</groupId> &lt ...

Posted by paul2463 on Sat, 04 Apr 2020 03:27:30 -0700

My Spring Cloud:Zipkin Service Tracking

1. Overview *Why should we have service tracking? There are many services in the distributed system calling each other, and the invocation relationship is complex. If there is a problem, we will have a lot of work when we do problem investigation or optimize the architecture. At this time, we need to be able to accurately track each network re ...

Posted by madcat on Sat, 04 Apr 2020 03:23:40 -0700

Understanding Feign Source for Spring cloud Source Text

Introduction to Feign In the previous article, we analyzed Eureka's registration, renewal, service culling, service self-protection and other mechanisms. https://blog.csdn.net/lgq2626/article/details/80288992 .This article analyzes the feign of SpringCloud.Calls between SpringCloud micro-service items are made through httpress requests, which w ...

Posted by Mount Tropolis on Fri, 03 Apr 2020 23:55:28 -0700

Troubleshooting BeanUtils.copyProperties

Recently, the spring version of an old project was upgraded from 3.1.1.RELEASE to 3.2.18.RELEASE. As a result, a lot of problems appeared on the line. It was found that the attribute value of some int type of a bean instance was 0, The value of this bean is to query the interface, and then assign a value through spring's tool class method org.s ...

Posted by Sianide on Fri, 03 Apr 2020 16:53:07 -0700

Struts 2 and Spring integration

Preface This post mainly explains how Spring integrates with struts 2 framework Key points of integration of struts 2 and Spring: The action object is given to Spring to create Building environment Entering the jar package To import a jar file: 1) Introduce struts. Jar related files 2) Spring core related jar files 3) Spring web support jar ...

Posted by jarv on Fri, 03 Apr 2020 11:58:34 -0700

Installation and use of ActiveMQ

ActiveMQ installation Go to http://activemq.apache.org/ official website to download ActiveMQ Installation environment: 1. jdk required 2. Install the Linux system. The production environment is all Linux systems. Installation steps: Step 1: upload the ActiveMQ compressed package to the Linux system. Step 2: decompress. Step 3: start. Use the ...

Posted by TechXpert on Fri, 03 Apr 2020 11:28:46 -0700

(transfer) the server opens a new Multithread to use HibernateSession to prevent No session

Original link of blogger: https://blog.csdn.net/zhengwei223/article/details/30506455 The new thread needs to bind the Hibernate session to use the functions of transaction and delay loading in the new thread, otherwise no session exception will be exposed; terms of settlement: //Business method new Runnable() { @Over ...

Posted by mourisj on Fri, 03 Apr 2020 10:28:25 -0700

Activiti series (4) automatic submission of the first step of the process

1. Reasons for realizing the first step of automatic submission Comparing the following two flow charts, we can see that the second chart better reflects the process of application initiation. In addition, the second flow chart can better realize the business logic of the leader approval phase returning to the initi ...

Posted by LAMP on Fri, 03 Apr 2020 06:19:19 -0700