Tag:spring

  • Example of using transactionproxyfactorybean to implement declarative transaction operation in spring

    Time:2020-7-11

    In this paper, we give an example of how to use transactionproxyfactorybean to implement declarative transaction operation in spring. For your reference, the details are as follows: 1. Configuration file <?xml version=”1.0″ encoding=”GBK”?> <beans xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://www.springframework.org/schema/beans” xmlns:p=”http://www.springframework.org/schema/p” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd”> <! — define the data source bean, implement it with c3p0 data source, and inject the […]

  • [email protected] How to use attribute injection

    Time:2020-7-8

    This article mainly introduces [email protected] Attribute injection use method analysis, the article through the example code introduced in very detail, for everyone’s study or work has a certain reference learning value, need friends can refer to In projects using the spring framework, @ value is one of the frequently used annotations. Its function is to […]

  • Solution to cross domain problem of spring cloud gateway request

    Time:2020-7-5

    This article mainly introduces the spring cloud gateway request cross domain problem solution, the article through the example code introduction is very detailed, has the certain reference study value to everybody’s study or the work, needs the friend may refer to The code is as follows @Configuration public class CorsConfig implements GlobalFilter, Ordered { private […]

  • Detailed explanation of spring stopwatch

    Time:2020-7-2

    This article mainly introduces how to use spring stopwatch in detail. The example code is introduced in detail, which has certain reference value for everyone’s study or work. Friends in need can refer to it Stopwatch is a simple stopwatch that allows multiple tasks to be timed, exposing the total run time and run time […]

  • Principle and usage analysis of spring cloud circuit breaker hystrix

    Time:2020-6-25

    This article mainly introduces the principle and usage analysis of the spring cloud circuit breaker hystrix. The example code is introduced in detail in this article, which has certain reference learning value for your study or work. You can refer to the following for your friends In a distributed environment, some of the many service […]

  • How to add annotation to spring @ async method to realize asynchronous call

    Time:2020-6-24

    This article mainly introduces how to add annotation to spring @ async method to realize asynchronous call. The example code is introduced in detail in this article, which has certain reference value for your study or work. You can refer to In the process of using spring framework, we will use @ async annotation to […]

  • Example of implementing declarative transaction operation with annotation in spring practice

    Time:2020-6-22

    The example of this article describes the implementation of declarative transaction operations with annotations in spring practice. To share with you for your reference, as follows: One configuration file <?xml version=”1.0″ encoding=”GBK”?> <beans xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://www.springframework.org/schema/beans” xmlns:p=”http://www.springframework.org/schema/p” xmlns:aop=”http://www.springframework.org/schema/aop” xmlns:tx=”http://www.springframework.org/schema/tx” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd”> <! — define data source bean, use c3p0 data source to […]

  • Spring and struts integration let spring manage controller operation examples

    Time:2020-6-20

    The example of this article describes the integration of spring and struts to let spring manage controller operations. To share with you for your reference, as follows: One web configuration <?xml version=”1.0″ encoding=”GBK”?> <web-app xmlns=”http://xmlns.jcp.org/xml/ns/javaee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd” version=”3.1″> <! — initialize spring container with contextloaderlistener — > <listener> <listener-class>org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <! — define […]

  • Novice learning microservice spring cloud project architecture building method

    Time:2020-6-17

    This article mainly introduces the construction method of spring cloud project architecture for novice learning microservices. The example code is introduced in detail in this article, which has a certain reference learning value for everyone’s study or work. You can refer to the following for your friends Spring’s microservice framework, springcloud, is welcomed by many […]

  • Three methods of spring MVC unified exception handling

    Time:2020-6-15

    This article mainly introduces three methods of spring MVC unified exception handling. The example code is introduced in detail in this article, which has certain reference learning value for your study or work. You can refer to the following for your friends In the development of spring MVC application, no matter for the underlying database […]

  • Spring cloud hystrix exception handling method details

    Time:2020-6-5

    This article mainly introduces the spring cloud hystrix exception handling method in detail. The example code in this article is very detailed, which has a certain reference learning value for your study or work. You can refer to the following for your friends When calling the run() method of the hsytrixcommand implementation of the service […]