[note] spring MVC + mybatis build Web development environment
After using the habit of jFinal, spring forgot...
Take another note here
The project structure is as follows
First of all, I used maven of IDEA to process mybatis used by the database framework here. The database is mariadb, and I used FASTJSON when I used json to transfer data to the front desk.
<?xml version="1.0" encoding="UTF-8"? ...
Posted by PHP_PhREEEk on Thu, 17 Oct 2019 14:36:31 -0700
springboot+mybatis + daydream database
preparation:
First, install the damon6 database. After installation, the following table is established
Then, it's very important to write in this way, or you will report unlimited errors.
Query method of Dayun database:
select * "from" library name "." schema name "." table name "
Secondly, downl ...
Posted by phelpsa on Thu, 17 Oct 2019 08:41:39 -0700
Developing short video watermarking source project based on springBoot framework + IntelliJ IDEA running test + local implementation function
One: create a maven project package for springboot
New: File – new – project
Download 1.8jdk and Maven I downloaded Maven 3.6.1 here
GroupID is the unique identifier of the project organization: general writing format: com. Company. Project name
ArtifactID is the unique identifier of the p ...
Posted by aeafisme23 on Wed, 16 Oct 2019 14:45:11 -0700
014. Use docker compose to install the software
Create the docker compose basic directory
mkdir -p /usr/local/docker
1. Install mysql
Create mysql directory in / usr/local/docker /
mkdir -p /usr/local/docker/mysql
Write the docker-compose.yml file in / usr/local/docker/mysql directory
Note: the vi editor can paste the content to the file with format by inputting set paste in command m ...
Posted by greengo on Wed, 16 Oct 2019 08:51:43 -0700
Add, modify, read and delete PPT notes in Java
Summary
The note information in the slide is only the specific content for the speaker to watch. When the speaker shows the slide, the note information can provide the speaker with explanation ideas and play an auxiliary role in explanation. This article will demonstrate how to operate the notes in the PPT slide through the Java program. The m ...
Posted by steve8557 on Tue, 15 Oct 2019 10:23:42 -0700
springboot solves the problem that the @ RequestBody parameter in the controller cannot read the body content after the interceptor reads the body content of the web request input stream parameter.
In the previous chapter, we briefly introduced the source code demo of the interceptor. , there is no exception when getting get parameter in interceptor, but after reading body content in input stream in interceptor, @ RequestBody annotation parameter in controller cannot get content
The following desc ...
Posted by smokebusted on Tue, 15 Oct 2019 10:21:40 -0700
[step by step implementation of advertising system in Spring cloud] configuration project structure & Implementation of Eureka service
Parent project management
First, before creating the delivery system, let's take a look at our engineering structure:
Mscx ad sponsor is our advertising system. For the above structure, we need to create a parent project mscx ad first
To write the pom of the parent project to manage our unified dependency information.
<?xml version="1.0" en ...
Posted by r2ks on Tue, 15 Oct 2019 09:06:19 -0700
Spring boot2 unit test
Introduce maven dependency
powermock is introduced to solve the problem of static method mock.
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>2.0.2</version>
<scope>test</scope>
</dependency>
<dependency>
...
Posted by leeharvey09 on Tue, 15 Oct 2019 03:50:03 -0700
Handler Exception Resolver for Custom Exception Handling in the SpringBook series of tutorials
About the global exception handling of Web applications, the last article introduced the way of Controller Advice combined with @ExceptionHandler to realize the global exception management of Web applications.
This blog post brings another unusual way to handle exceptional states by implementing a custom Handler Exception Resolver
Links to the ...
Posted by Guffi on Mon, 14 Oct 2019 04:59:41 -0700
Maven: How to add resources and class files when using spring-boot-maven-plugin
When using spring-boot-maven-plugin to package JAR for current projects, it is often necessary to add some resources and class files under non-default paths to the JAR package. The following can be configured in pom.xml
<build>
<plugins>
<plugin>
<group ...
Posted by dniezby on Sun, 13 Oct 2019 14:07:57 -0700