Spring MVC? File upload-day02
Spring MVC file upload)
SpringMVC-day02
Spring MVC file upload
1. Use maven to introduce two more jars' commons-io-2.6. Jar commons-fileupload-1.3.3. Jar based on the Spring jar package and spring MVC jar package.`
2. Spring MVC needs to configure processor mapper, processor adapter, view parser a ...
Posted by rulkster2 on Sun, 03 Nov 2019 02:36:57 +0100
Different environment packaging of springboot
Article directory
1. Scene description
2. Solutions
2.1 real code
2.2 code description
2.3 renderings:
2.3.1 program directory
2.3.2 maven directory
1. Scene description
Spring boot + Maven packaging, projects often use different environments to package different configuration files, ...
Posted by fangfang on Thu, 31 Oct 2019 21:18:10 +0100
websocket simple implementation based on springboot
1. Create a new springboot project and add a maven dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
The file directory structure is as follows:
2. Create websocket server c ...
Posted by norbie on Tue, 29 Oct 2019 18:03:49 +0100
idea creating springboot aggregation project
1. Create a parent project, file > New > project, as shown in the following figure:
Click Project to open the following interface:
Click Next, as shown below:
Note: because springboot is an external network, it may not be able to be opened. It needs to be opened through an agent. The agent recommends using SSR win 4.7.0-fix (down ...
Posted by miltonos on Sat, 26 Oct 2019 09:54:33 +0200
Integrated HttpClient of SpringBoot
Table of Contents
1.maven add dependency
2. Add profile information
3. Create HttpClient entity class association configuration
4. Create connection thread processing class
5. Create request return result class
6. Create specific request class
1.maven add dependency
pom.xml: here, we add the ...
Posted by petitduc on Fri, 25 Oct 2019 21:08:57 +0200
[easyexc] Alibaba easyexcel version 2.0.5 simple reading and writing example
Ali easyexcel is a toolkit for reading and writing Excel based on the package of poi, which mainly solves the problem of large memory occupied by reading large file poi, and also provides some simple excel operation API. But I found it on the Internet. There are few official explanations. The example ...
Posted by Andre_Ng on Fri, 25 Oct 2019 16:29:10 +0200
Spring - concept, DI
Article directory
Spring
1. Concepts of dependency injection (DI) and inversion of control (IOC)
2 create maven project steps
3 dependency injection
3.1 dependency injection String, class object
3.2 dependency injection List,Array,Map,Set
3.3 dependency injection internal bean object
3.4 null and n ...
Posted by mr00047 on Thu, 24 Oct 2019 13:18:55 +0200
Jenkins + docker compose one click publishing of spring cloud service
Preface
The previous article described using docker+jenkins to publish the spring boot project on github. However, once multiple services need to be published together, one configuration for one is too tired to publish. Is there any way to package multiple docker images at one time, and then deploy the image file as a running container? Docker ...
Posted by Dillenger on Wed, 23 Oct 2019 09:24:26 +0200
Mybatis environment construction: self study essay
Environment: IDEA MySQL
1. Build maven project, import coordinates: edit pom.xml, and create mybatis constraint.
stay https://mybatis.org/mybatis-3/zh/getting-started.html View the latest version of mybatis and the beginning of the constraint.
<!-- x.x.x by mybaits Version number -->
<dependency>
<groupId>org.mybatis& ...
Posted by arhunter on Tue, 22 Oct 2019 16:56:18 +0200
Java application configuring container health check in docker environment
stay Fast experience docker container health This article has experienced the health check function of docker container. Today, we will add health check to the container of java application, so that the application status can be monitored and viewed at any time.
Actual combat environment information
Operating system: macOS Catalina 10.15
Dock ...
Posted by rob.weaver on Mon, 21 Oct 2019 12:40:44 +0200