Spring boot project construction
Record the Spring boot project building process today. Because Spring MVC used to be used before, it needs to configure many configuration files. After entering the new company, the company uses spring boot, so lear ...
Posted on Fri, 23 Aug 2019 00:29:28 -0700 by stezz
Logback is another open source log component designed by the founder of log4j, which is divided into the following next modules:
logback-core: the basic module of the other two modules
logback-classic: It is an improved version of log4j, and it fully implements the slf4j API so that you can easily change to other lo ...
Posted on Thu, 22 Aug 2019 17:43:41 -0700 by xtopolis
What is generic erase
Java does not pass generic classes, so take an intuitive chestnut:
public class BaseProvider<T>
public void doSomething()
Class<?> clazz = getClass();
Type superclass = clazz.getGenericSuperclass();
Posted on Thu, 22 Aug 2019 09:45:34 -0700 by manoj_jnics1
In this tutorial, we will show you several java8 examples to demonstrate the use of Streams filter (), collect (), findAny (), and orElse ().
What is flow?
Stream is an element queue from a data source and supports aggregation operations
Elements are specific types of objects that form a queue. Stream in Java does not store eleme ...
Posted on Thu, 22 Aug 2019 08:13:10 -0700 by smclay
@ Conditional OnBean and @Conditional OnClass
In the previous article, @Conditional can be conditionally controlled whether to inject beans or not. This article talks about several other common ways of using annotations about beans.
Posted on Wed, 21 Aug 2019 05:57:19 -0700 by maciek4
This article mainly introduces how to record logs gracefully through sl4j log component in SpringBoot. Actually, the first line of code for introducing JAVA is a line of logs. Are you still using System.out.println("Hello, Xiaoming!") to log?
Logging components I've experienced
The first log component I came into contact with was Lo ...
Posted on Wed, 21 Aug 2019 03:43:27 -0700 by tom2oo8
SpringBoot is a product of simplifying the creation, operation, debugging and deployment of Spring applications. The feature of automatic assembly enables us to pay more attention to the business itself rather than the external XML configuration. We can easily build a WEB project by following the specifications and introducing relevant depende ...
Posted on Wed, 21 Aug 2019 03:42:43 -0700 by tbach2
It is believed that we have encountered some scenarios that need to refresh the custom attribute values of some beans in the project. The source data of propertySource used here may not come from outside, but from the result set generated by the intermediate process of a program running. Scenarios like this, such as data preprocessi ...
Posted on Tue, 20 Aug 2019 21:41:09 -0700 by CountryGirl
Spring Security Resolution (1) - Authorization Process
_When learning Spring Cloud, when you encounter the content related to the authorized service oauth, you always have a half-knowledge, so you decide to first learn and collate the content, principles and design related to Spring Security, Spring Security Oauth2 and other privileges, certif ...
Posted on Mon, 19 Aug 2019 19:21:08 -0700 by pixelgirl
"To cross the glacier of the Yellow River, we will travel all over the world with snow." No matter in life or in the computer world, there will inevitably be an exception. Last article RESTful API returns uniform JSON data format Explains the handling of uniform returns, which is a normal situation for requests; this a ...
Posted on Mon, 19 Aug 2019 17:50:09 -0700 by thewitt