Tag:spring

  • 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(); […]

  • Methods and steps of configuring spring environment with docker composition

    Time:2021-2-8

    Recently, we need to package the project for members to test, but the package will affect the development, so we plan to use itdockerSimulate the production environment to run the packaged project, so that it can be developed and tested for members. Because the original project is too large, I plan to test the water […]

  • Quenching of 65si2mnwa

    Time:2021-2-4

    The oxide scale produced by 65si2mnwa quenching has an adverse effect on the subsequent cadmium plating with ammonium chloride and the performance of 65si2mnwa spring. Before cadmium plating, the alkali solution peeling process is added. The specific process flow is: quenching – hanging – degreasing – peeling – activation – electroplatingThe effects of peeling treatment […]

  • Analysis of the implementation process of spring cloud turbine monitoring

    Time:2021-1-28

    This article mainly introduces the analysis of the implementation process of spring cloud turbine monitoring, 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 1、 pom.xml file <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” […]

  • Spring boot integrated ehcache cache solution

    Time:2021-1-21

    This content mainly introduces how to quickly implement the data caching function of spring boot application based on ehcache 3.0. In spring boot applications, we can cache data quickly through spring caching. Next, we’ll show you how to do spring boot caching in three steps. 1. Create a spring boot project The Maven dependency file […]

  • Example of loading xml resources with classpathresource in spring

    Time:2021-1-20

    This article illustrates how spring uses classpathresource to load XML resources. The details are as follows: One code package lee; import org.springframework.core.io.ClassPathResource; import org.dom4j.*; import org.dom4j.io.*; import java.util.*; import java.util.*; public class ClassPathResourceTest { public static void main(String[] args) throws Exception { //Create a resource object and read the resource from the class loading path […]

  • Two XML based dependency injection methods in spring

    Time:2021-1-19

    1) Injecting beans using constructors Entity class: user class public class User { private String name; private UserMessage userMessage; public User() { } public User(String name, UserMessage userMessage) { this.name = name; this.userMessage = userMessage; } public String getName() { return name; } public void setName(String name) { this.name = name; } public UserMessage getUserMessage() […]

  • Example of loading resource file by file system resource in spring

    Time:2021-1-18

    This article describes how to load the resource file with the file system resource of spring. The details are as follows: One code package lee; import org.springframework.core.io.FileSystemResource; import org.dom4j.*; import org.dom4j.io.*; import java.util.*; import java.util.*; public class FileSystemResourceTest { public static void main(String[] args) throws Exception { //Load from the current path of the file […]

  • Example of accessing resource file by servletcontextresource in spring

    Time:2021-1-17

    In this paper, an example is given to show how spring‘s servletcontextresource can access resource files. The details are as follows: One view <%@ page contentType=”text/html; charset=GBK” language=”java” errorPage=”” %> <%@ page import=”org.springframework.web.context.support.ServletContextResource”%> <%@ page import=”org.dom4j.*,org.dom4j.io.*,java.util.*”%> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> < title > test servletcontextresource < / Title > </head> <body> <h3>Testing servletcontextresource</h3> <% //Read from […]

  • Api: tiktok: video with the same product

    Time:2021-1-7

    Tiktok tiktok, tiktok, tiktok, Api, Api, jitter, voice, bullet screen comments, jitter, jitter, and jitter. Tiktok tiktok tiktok data, jitter data acquisition, live broadcast of shaking sound Titodata: professional short video data acquisition and processing platform. For more information, please contact:TiToData Massive data collection Collect 500 million pieces of data for customers every day Tiktok […]

  • How spring framework uses p-namespace for injection

    Time:2021-1-4

    This article mainly introduces how the spring framework uses the P namespace for injection. The sample code is introduced in great detail, which has a certain reference value for everyone’s study or work. If you need a friend, you can refer to it One thing to note here is that the injection of p-name space […]