34. Integrated Workflow Activity for Spring Cloud 2.x

Workflow is very common in projects, so here are two diagrams: First:Second:Explain the above two pictures: Assume these two diagrams are flowcharts of Chinese brothers'vacations Components of the graph: Characters: Fan Bingbing, Feng Xiaogang, Wang Zhongjun Events (Actions): Leave, Approve, Disapprove Workflow: is the "automation of pa ...

Posted on Tue, 05 May 2020 01:39:58 -0700 by CiPH

Python notes: each department's daily specials in April 2020

Leaders and colleagues: Hello everyone!   The following is the details and summary information of each department of South China procurement center's "daily special purchase items" in April 2020. Please pay more attention to and follow up with the heads of departments and categories. Please refer to th ...

Posted on Mon, 04 May 2020 16:55:18 -0700 by ben.hornshaw

Spring MVC integrates fastjson simple configuration

Here is Official documents Introduction: If you are using XML to configure Spring MVC, just add the following configuration to the XML configuration file of Spring MVC. <mvc:annotation-driven> <mvc:message-converters> <bean class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter"/> < ...

Posted on Mon, 04 May 2020 10:53:46 -0700 by valen53

Spring boot (6): spring boot uses CROS to solve cross domain problems

Cross domain issues have been mentioned before. If you don't understand, please refer to my previous article. This chapter mainly explains the support of spring boot cros. It is mainly described in the form of official documents. SpringBoot CROS reference: http://docs.spring.io/spring-boot/docs/1.5.4.RELEASE/reference/htmlsing ...

Posted on Mon, 04 May 2020 03:46:03 -0700 by hi2you

Use Python to execute the executable jar package.

There are many ways to execute jar generated by Spring boot. Here is the most commonly used example. In the environment with java, you can run the spring boot project directly by using the following command java -jar app.jar One disadvantage of this method is that it can't run in the background. In this case, you need to use a nohup command ...

Posted on Sun, 03 May 2020 08:06:06 -0700 by Atomic Taco

Java implementation of facet oriented based on custom annotation

Purpose: to add an annotation anywhere you want to cut, and then you can realize the aspect oriented programming Custom annotation class @Target({ElementType.PARAMETER, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface LongOu { } @Target and @ Retention are java meta annotations (4 in total): @Target: set t ...

Posted on Sat, 02 May 2020 04:52:03 -0700 by rosenrosen

Several ways for Spring to load Properties configuration files

1: Load configuration file through context: Property placeholder tag Add the following declaration to spring's configuration file <context:property-placeholder ignore-unresolvable="true" location="classpath:jdbc.properties"/>   When referencing values, use $to reference the values you need1. In datasource.xml <!-- Configu ...

Posted on Fri, 01 May 2020 20:02:46 -0700 by snog

Minimum configuration of Spring MVC combined with Spring Security

Minimum configuration of Spring MVC combined with Spring Security Related maven coordinates <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> </dependency> <dependency> &l ...

Posted on Fri, 01 May 2020 14:16:05 -0700 by Mieke23

Four ways to instantiate bean s in Spring

This article mainly introduces four ways to instantiate beans (injection way) or four ways to instantiate dependent objects. The above program, to create a bean object, uses what method and constructor method (Spring can create a class object when the constructor is privatized) There are four common creation methods: 1) setter method 2) Constru ...

Posted on Fri, 01 May 2020 02:37:29 -0700 by misc00500

The ninth chapter Spring Cloud Feign declarative call service

In the Spring Cloud Netflix stack, each microservice exposes its own services in the form of HTTP interface, so HTTP client must be used when calling remote services. We can use the native URLConnection of JDK, HttpClient of Apache and asynchronous HTTP of Netty Client, Spring's RestTemplate. But the most convenient and elegant thing to use i ...

Posted on Thu, 30 Apr 2020 22:26:04 -0700 by adksga