Java Spring Cloud B2B2C o2o Multi-user Mall Spring cloud Architecture Upload Files
This article mainly introduces how to use springboot project as a server to receive multi-file files uploaded through http.
Construction project
For example, to create a spring MVC project, you need spring-boot-starter-thymeleaf and spring-boot-starter-web start dependencies. For example, to upload files to the server, you need to add tags t ...
Posted by jscnet on Fri, 22 Mar 2019 09:21:53 -0700
Custom Start Dependencies in Spring Boot
1. Add automatic configuration dependencies to pom files:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
2. If a jar exists to configure it, the dependency needs to be added. Add httpclient here:
<dependency>
& ...
Posted by kwilder on Wed, 20 Mar 2019 08:30:40 -0700
SpringBoot 2.x Sets quartz's overwriteExistingJobs parameter
background quartz AutoConfiguration is integrated into springBoot 2.x, but the configuration attribute provided by springBoot does not provide the setting of overwriteExistingJobs.
The resulting problems Suppose we use quartz's own database to persist tasks and the system does not provide an interface for tasks. When we need to modify the task ...
Posted by NickG21 on Sun, 03 Feb 2019 12:33:15 -0800
springboot Integration quartz (1): Basic usage
introduce
Quartz is an open source job scheduling framework written entirely in Java. It has many features, such as database support, clustering, plug-ins, EJB job pre-construction, JavaMail and others, support for cron-like expressions, and so on. The project has been acquired by Terracotta.
Introduction to Quartz API
The key interfaces of the ...
Posted by consolestrat on Thu, 31 Jan 2019 15:21:16 -0800
spring(1) spring-json global serialization
Scenario introduction
Background transmission of data to the front end, generally using json, not to mention many, see an example:
If you use the mongodb database, it's very easy to have a situation, which happens when you transfer ObjectId (the default data can be the primary key):
data :{
objectId :{
timestamp: 123123123,
...
Posted by jdesilva on Thu, 31 Jan 2019 11:36:16 -0800
Unexpected error occurred in scheduled task.
SpringBoot 2 Timing Task Native Test was successful, but the server could not run. The prompt error is as follows
Unexpected error occurred in scheduled task.
java.lang.NullPointerException: null
Detailed errors are as follows, because the project is placed on the server will report errors. So you have to output the log to the se ...
Posted by OLM3CA on Mon, 21 Jan 2019 12:30:13 -0800
Using openoffice+jodconverter+webuploader+pdf.js to realize file upload and online preview
Background
Recently, a company project to achieve a file upload and multi-document online preview function, has been doing wireless tool development, did not involve these things. In addition, the project team is short of java developers, and they are only a half-hanging front-end and a half-hanging java developers, so let me get a Demo first. ...
Posted by DaveMate on Mon, 07 Jan 2019 01:51:10 -0800
Spring Boot Integrates Swagger2 to Build RESTful API Documents
Interface Document Problems in Development
In project development, it is generally divided into front-end UI development and back-end interface development. The front-end obtains data by calling the RESTful API interface of the back-end and then displays it. So UI development engineers need to know what the back-end interface looks like, such a ...
Posted by djroki on Mon, 31 Dec 2018 22:36:08 -0800
[Spring Boot Real Warfare Series] - No.3 Spring boot integration Mybatis
I. What is Mybatis?
Mybatis is an excellent java-based persistence framework, which encapsulates jdbc internally, so that developers only need to pay attention to SQL statement s themselves, and do not need to spend energy to deal with the complicated process of loading driver, creating connection, creating state and so on. At the same time, m ...
Posted by Tokunbo on Tue, 18 Dec 2018 21:42:04 -0800
Spring Boot Initial Experience - Integrating spring and MyBatis
1. Spring Boot Fast Building
1. New projects using IntelliJ IDEA
File-New-project Select Spring Initializr, then select the default url and click on [Next]:
Then modify the project information:
Check the Web template:
Select the location of the project and click Finish.
If you configure Spring Boot for the first time, you ma ...
Posted by jmrothermel on Sun, 16 Dec 2018 18:06:03 -0800