Details of spring boot dependencies, spring boot starter parent, io.spring.platform

The previous article introduced several methods of spring boot dependent version number management. Now let's analyze in detail how spring boot dependencies, spring boot starter parent and io.spring.platform control version number, and what are their functions and differences. I. spring boot dependencies, spring boot starter parent and io.spri ...

Added by Mijii on Thu, 24 Oct 2019 11:40:35 +0300

spring implements injection for static attributes of classes

We know that under normal circumstances, a bean of spring depends on other resources, such as properties or other beans. You can use @ Value or @ Autowired directly. These two annotations are equivalent to the property nodes when the spring application context xml file defines beans. Equivalent to calling the set method of each property. ...

Added by pnoeric on Thu, 24 Oct 2019 01:03:52 +0300

Spring custom enhancement method

Custom enhancement methods, also known as notification methods, are Java methods annotated with @ Before, @ AfterRunning, @ AfterThrowing, @ After or @ Around annotations.   @Before Pre enhancement (also known as pre notification): in the target methodimplementPrevious implementation @After ...

Added by davidmuir on Wed, 23 Oct 2019 21:41:17 +0300

Servlet initialization parameters (Servlet2.5,3.0)

I. use servlet 2.5 to initialize parameters Servlet 2.5 is configured based on xml, so it is configured in xml. Servlet 3.0 started to support annotation configuration. There are two kinds of configurations: valid in the current Servlet and valid in the entire web container. When the entire web contai ...

Added by dgrinberg on Tue, 22 Oct 2019 21:27:51 +0300

SSM implementation of paging fuzzy query

SSM implementation of paging fuzzy query I. preparations 1,pom.xml <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test&lt ...

Added by launchcode on Tue, 22 Oct 2019 18:40:46 +0300

Spring cloud -- declarative call to Feign

Feign declarative call I. about Feign When using the Ribbon and RestTemplate to consume services, one of the most troublesome points is that every time you need to splice URL s and organize parameters, so with Feign declarative call, Feign's primary goal is to make the calling process of Java HTTP client very simple. It adopts the style of decl ...

Added by joinx on Tue, 22 Oct 2019 13:59:15 +0300

Three common uses and source code implementation of IOC in Spring source code analysis

In retrospect, what we have studied is AnnotationConfigApplicationContext annotationConfigApplication = new AnnotationConfigApplicationContext (MainConfig.class); Person person2 = (Person)annotationConfigApplication.getBean("person2"); The realization of these two sentences comes to the constructor implementation of annotationco ...

Added by madspoihur on Sun, 20 Oct 2019 20:37:30 +0300

Learn AOP of Spring together

Summary In the software development, we focus on business logic code, but in the actual development, the code that needs to be written is not only business logic, but also need to deal with logging, exception handling, transaction control and other things unrelated to business. And these codes are also necessary for the server. Codes like this ...

Added by vipes on Sun, 20 Oct 2019 18:13:02 +0300

Android output Log class and save to file

There are five common methods for android.util.Log: Log.v(), Log.d(), Log.i(), Log.w(), and Log.e(). Corresponding to VERBOSE,DEBUG,INFO,WARN,ERROR according to the initial.   1. The debug color of Log.v is black, and any message will be output. V here represents verbose meaning, which is usually used as Log.v("", "") ...

Added by DiscoTrio on Sat, 19 Oct 2019 21:54:34 +0300

Java version of Spring Cloud B2B2C o2o social e-commerce - building Eureka Registration Center

One is to create a Spring Boot project named Eureka server and introduce necessary dependencies into pom.xml. The code is as follows. <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.3.7.RELEASE</version> ...

Added by mooler on Fri, 18 Oct 2019 21:25:12 +0300