Fast writing method of SpringBoot unit test based on link idea
introduction:This paper prefers practice rather than methodology. The writing method of SpringBoot unit test mentioned in this paper is not an official solution, but a writing method that the author thinks is more convenient and efficient. Each team and even each developer in the team may have their own writing habits and styles. As long as the ...
Added by joshmpratt on Sun, 16 Jan 2022 02:29:39 +0200
Chapter 12 collection (ArrayList LinkedList generic)
Chapter 12 collection (ArrayList LinkedList generic)
Tip: Here you can add the general contents to be recorded in this article: For example, with the continuous development of artificial intelligence, machine learning technology is becoming more and more important. Many people have started learning machine learning. This paper introduces t ...
Added by dmccabe on Sat, 15 Jan 2022 11:05:09 +0200
Starting from "0", self-study the spring framework - springIOC foundation
catalogue
1, Load profile
1.1 relative position
2. Absolute position
3. Multiple configuration files - transfer multiple file names
4. Multiple configuration files - the total configuration file is import ed
2, Instantiation of bean objects
2.1 constructor instantiation
2. Static factory instantiation
3. Example chemical plant
3, IOC ...
Added by blen on Sat, 15 Jan 2022 05:56:35 +0200
Maven download and basic configuration
Maven
Why should I learn this technology?
In Java web, we need to use a large number of jar packages, which we import manually; How can we make something automatically import and configure this jar package for us Thus, maven was born The advantage of maven is that it will help you import other jar packages that this jar package depends o ...
Added by kampbell411 on Fri, 14 Jan 2022 12:35:22 +0200
Spring Boot realizes multi picture upload and echo, and the posture is up ~
upload
The code of the Controller is very simple. Because the spring MVC framework is used, you can directly connect it with MultipartFile. Because it is a multi picture upload, it is connected with an array. Note here that the parameter name should be the same as the name in < input > Values correspond to:
@RequestMapping("/pic")
@Resp ...
Added by rxsid on Fri, 14 Jan 2022 02:30:47 +0200
Detailed explanation of Maven creating parent-child project
preface: With the prevalence of microservices, the projects we create are basically parent-child projects. We introduce jars through the parent project and define unified version numbers, so that we can directly reference and use them in the child projects without repeating the declaration of version numbers, which will facilitate the unified m ...
Added by pixeltrace on Thu, 13 Jan 2022 23:03:08 +0200
Gradle multi-channel packaging (dynamically set App name, application icon, replace constant, change package name, change channel)
First put a complete multi-channel / multi environment packaged configuration, and then explain it.
Achieved:
Different environments and package names;Modify different strings in different environments XML resource file;Modify the specified constant in different environments;For different environments, modify androidmanifest Channel varia ...
Added by pea on Wed, 12 Jan 2022 12:05:26 +0200
SSM build notes!
1.SSM component Spring + SpringMvc + Mybatis 2. This tutorial implements the construction of SSM based on idea and maven
3. Start: 1. Create a maven web project using idea Note: you must select the configured Maven environment {with alicloud} 2. Check whether the project structure is normal and whether ...
Added by DJTim666 on Tue, 11 Jan 2022 02:24:20 +0200
Maven topics - Maven Basics
1, Coordinate definition
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ioteye.maven</groupId>
& ...
Added by mattonline on Tue, 11 Jan 2022 01:41:58 +0200
Spring WebFlux framework - WebFlux configuration
Next blog: https://blog.csdn.net/qq_43605444/article/details/122420890?spm=1001.2014.3001.5502
11. WebFlux configuration
The WebFlux Java configuration declares the components required to process requests using annotated controllers or functional endpoints, and provides an API to customize the configuration. This means that you do not need to ...
Added by riginosz on Mon, 10 Jan 2022 17:43:42 +0200