Tag:spring

  • Docker deployment Kafka and spring Kafka implementation

    Time:2021-5-6

    This article mainly introduces the docker deployment of Kafka and the implementation of spring Kafka. The sample code is introduced in great detail, which has a certain reference learning value for everyone’s study or work. Friends who need it can refer to it from https://hub.docker.com/ Find Kafka The third one is active and has a […]

  • Solutions to spring @ transactional annotation invalidation

    Time:2021-4-27

    This article mainly introduces the spring @ transactional annotation invalidation solution, which is introduced in great detail through the example code. It has a certain reference learning value for everyone’s study or work, and friends who need it can refer to it I found in the project these days that after I used @ transactional […]

  • Simply understand the difference between beanfactory and factorybean in spring

    Time:2021-4-20

    This article mainly introduces a simple understanding of the difference between beanfactory and factorybean in spring. The sample code is introduced in great detail, which has a certain reference learning value for everyone’s study or work. Friends who need it can refer to it In spring, there are two interfaces, beanfactory and factorybean, which are […]

  • Simply understand the difference between spring bean scope properties singleton and prototype

    Time:2021-4-15

    This article mainly introduces a simple understanding of the difference between spring bean scope attribute singleton and prototype. The sample code is introduced in great detail, which has a certain reference learning value for everyone’s study or work. If you need a friend, you can refer to it 1.singleton When the scope of a bean […]

  • Simple understanding of spring cloud build config process instance

    Time:2021-4-14

    This article mainly introduces a simple understanding of the spring cloud build config process example, the article through the example code is very detailed, for everyone’s study or work has a certain reference learning value, need friends can refer to Using spring cloud’s spring cloud config server component to build its own configuration center config […]

  • A detailed explanation of the meaning of spring event propagation category

    Time:2021-3-26

    This article mainly introduces the spring thing propagation category meaning in detail, the article through the example code introduction is very detailed, for everyone’s study or work has a certain reference learning value, need friends can refer to In spring transactions, when we define annotation transaction, we will indicate the propagation category of the thing, […]

  • How to use factory mode to realize program decoupling based on spring

    Time:2021-3-21

    This article mainly introduces how to use the factory mode to achieve program decoupling based on spring. The example code is introduced in great detail, which has a certain reference learning value for everyone’s study or work. Friends in need can refer to it 1. What is coupling and decoupling? Since it is program decoupling, […]

  • Example of using @ resource to configure dependency operation in spring

    Time:2021-3-20

    This article illustrates how spring uses @ resource to configure dependency operations. The details are as follows: I. configuration <?xml version=”1.0″ encoding=”GBK”?> <beans xmlns=”http://www.springframework.org/schema/beans” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:context=”http://www.springframework.org/schema/context” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd”> <! — automatically scan all bean classes under the specified package and its subpackages — > <context:component-scan base-package=”org.crazyit.app.service”/> </beans> Two interfaces Axe package org.crazyit.app.service; public […]

  • Examples of using @ postconstruct and @ predestroy to customize life cycle behavior in spring

    Time:2021-3-19

    This article describes the use of @ postconstruct and @ predestroy to customize life cycle behavior operations in spring. The details are as follows: I. configuration <?xml version=”1.0″ encoding=”GBK”?> <beans xmlns=”http://www.springframework.org/schema/beans” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:context=”http://www.springframework.org/schema/context” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd”> <! — automatically scan all bean classes under the specified package and its subpackages — > <context:component-scan base-package=”org.crazyit.app.service”/> […]

  • How to use spring tool class to dynamically match URL

    Time:2021-3-10

    This article mainly introduces how to use spring tool class to dynamically match URL. The example code is introduced in great detail, which has a certain reference learning value for everyone’s study or work. If you need a friend, you can refer to it This method mainly uses spring to realize the wildcard matching of […]

  • Explanation of annotation usage of @ autowire in spring

    Time:2021-2-15

    This article illustrates the usage of @ autowire annotation in spring. The details are as follows: I. configuration <?xml version=”1.0″ encoding=”GBK”?> <beans xmlns=”http://www.springframework.org/schema/beans” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:context=”http://www.springframework.org/schema/context” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd”> <context:component-scan base-package=”org.crazyit.app.service,org.crazyit.app.dao”/> </beans> Two Dao interface BaseDao package org.crazyit.app.dao; public interface BaseDao<T> { void save(T e); } ItemDao package org.crazyit.app.dao; import org.crazyit.app.domain.*; public interface ItemDao extends […]

  • Examples of using the qualifier annotation in spring

    Time:2021-2-13

    This article illustrates the usage of the qualifier annotation in spring. The details are as follows: I. configuration <?xml version=”1.0″ encoding=”GBK”?> <beans xmlns=”http://www.springframework.org/schema/beans” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:context=”http://www.springframework.org/schema/context” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd”> <context:component-scan base-package=”org.crazyit.app.service”/> </beans> Two interfaces Axe package org.crazyit.app.service; public interface Axe { public String chop(); } Person package org.crazyit.app.service; public interface Person { public void useAxe(); […]